Networking Script python reference¶
Main interface functions wrapped with lmi commands are:
- get_device_by_name()
- get_setting_by_caption()
- list_devices()
- list_settings()
- get_mac()
- get_ip_addresses()
- get_default_gateways()
- get_dns_servers()
- get_available_settings()
- get_active_settings()
- get_setting_type()
- get_setting_ip4_method()
- get_setting_ip6_method()
- get_sub_setting()
- get_applicable_devices()
- activate()
- deactivate()
- create_setting()
- delete_setting()
- add_ip_address()
- remove_ip_address()
- replace_ip_address()
All of these accept ns object as the first argument. It is an instance of lmi.shell.LMINamespace.