Update show_all_interfaces.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from ncclient import manager
|
from ncclient import manager
|
||||||
with manager.connect(host='172.16.2.50', username='root',
|
with manager.connect(host='172.16.2.34', username='root',
|
||||||
password='rootroot', hostkey_verify=False) as m:
|
password='xxxx', hostkey_verify=False) as m:
|
||||||
result = m.get_config("running",
|
result = m.get_config("running",
|
||||||
filter=('subtree',
|
filter=('subtree',
|
||||||
'<interfaces xmlns="http://openconfig.net/yang/interfaces"/>'))
|
'<interfaces xmlns="http://openconfig.net/yang/interfaces"/>'))
|
||||||
|
|||||||
Reference in New Issue
Block a user