Update show_all_interfaces.py

This commit is contained in:
muassif
2021-08-21 17:13:33 +04:00
committed by GitHub
parent d76a4b559a
commit 88fc955700
+2 -2
View File
@@ -1,6 +1,6 @@
from ncclient import manager
with manager.connect(host='172.16.2.50', username='root',
password='rootroot', hostkey_verify=False) as m:
with manager.connect(host='172.16.2.34', username='root',
password='xxxx', hostkey_verify=False) as m:
result = m.get_config("running",
filter=('subtree',
'<interfaces xmlns="http://openconfig.net/yang/interfaces"/>'))