def demonstrate_all(device_name):
    """ Obtain, print and return the properties of all network interfaces on the specified device."""
    print("Apply function 'interface_properties' to a network device.")
    print('interface_properties(%s)' % device_name)
    interface_properties_list = interface_properties(device_name)
    print_table(interface_properties_list)
    print()
    return [properties.name for properties in interface_properties_list]
def demonstrate_one(device_name, interface_name):
    """ Obtain, print and return the properties of the specified interface on the specified device."""
    print("Apply function 'interface_properties' to both a network interface and a network device.")
    print('interface_properties(%s, %s)' % (device_name, interface_name))
    properties = interface_properties(device_name, interface_name)
    print_table(properties)
    print()
    return 
示例#3
0
def demonstrate_all(device_name):
    """ Obtain, print and return the properties of all network interfaces on the specified device."""
    print("Apply function 'interface_properties' to a network device.")
    print('interface_properties(%s)' % device_name)
    interface_properties_list = interface_properties(device_name)
    print_table(interface_properties_list)
    print()
    return [properties.name for properties in interface_properties_list]
示例#4
0
def demonstrate_one(device_name, interface_name):
    """ Obtain, print and return the properties of the specified interface on the specified device."""
    print(
        "Apply function 'interface_properties' to both a network interface and a network device."
    )
    print('interface_properties(%s, %s)' % (device_name, interface_name))
    properties = interface_properties(device_name, interface_name)
    print_table(properties)
    print()
    return
def demonstrate(device_name, interface_name):
    ''' Apply function 'interface_properties' to the specified device/interface.'''
    print('interface_properties(' + device_name, interface_name, sep=', ', end=')\n')
    print_rich(interface_properties(device_name, interface_name))