Skip to content

Commit 68c5323

Browse files
MParmarMParmar
authored andcommitted
Updated python script for cat9k configuration with extra params
1 parent 2064e04 commit 68c5323

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

labs/c9k/loopback_conf_new.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@
7474
with manager.connect(
7575
host="172.16.8.200",
7676
port=830,
77-
username="User1",
77+
username="user1",
7878
password='!Cisco123',
79-
hostkey_verify=False
79+
hostkey_verify=False,
80+
look_for_keys=False,
81+
device_params={'name': 'default'},
82+
allow_agent=False
8083
) as m:
8184

8285
print("Sending a <edit-config> operation to the device.\n")
83-
# Make a NETCONF <get-config> query using the filter
8486
netconf_reply = m.edit_config(netconf_data, target = 'running')
8587

8688
print("Here is the raw XML data returned from the device.\n")

0 commit comments

Comments
 (0)