https://napalm.readthedocs.io/en/latest/base.html
|
|
---|
|
Code Block |
---|
| >>> driver = napalm.get_network_driver('junos')
>>> device = driver(hostname='172.30.95.138', username='root', password='lab123!', optional_args={'port': 830})
>>> device.open()
>>> device.
device.cli( device.get_interfaces_counters( device.keepalive
device.close( device.get_interfaces_ip( device.key_file
device.commit_config( device.get_ipv6_neighbors_table( device.load_merge_candidate(
device.compare_config( device.get_lldp_neighbors( device.load_replace_candidate(
device.compliance_report( device.get_lldp_neighbors_detail( device.load_template(
device.config_lock device.get_mac_address_table( device.locked
device.config_replace device.get_network_instances( device.open(
device.connection_tests( device.get_ntp_peers( device.password
device.device device.get_ntp_servers( device.ping(
device.discard_config( device.get_ntp_stats( device.port
device.get_arp_table( device.get_optics( device.post_connection_tests(
device.get_bgp_config( device.get_probes_config( device.pre_connection_tests(
device.get_bgp_neighbors( device.get_probes_results( device.profile
device.get_bgp_neighbors_detail( device.get_route_to( device.rollback(
device.get_config( device.get_snmp_information( device.ssh_config_file
device.get_environment( device.get_users( device.timeout
device.get_facts( device.hostname device.traceroute(
device.get_firewall_policies( device.ignore_warning device.username
device.get_interfaces( device.is_alive(
>>> device. |
|