updating IP and passwd
This commit is contained in:
@@ -5,8 +5,8 @@ nc_payload = nc_template.\
|
|||||||
format(int_name='Loopback0',
|
format(int_name='Loopback0',
|
||||||
int_desc="Configured by NETCONF")
|
int_desc="Configured by NETCONF")
|
||||||
|
|
||||||
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 nc_conn:
|
password='xxxx', hostkey_verify=False) as nc_conn:
|
||||||
netconf_reply = nc_conn.edit_config(nc_payload, target="candidate")
|
netconf_reply = nc_conn.edit_config(nc_payload, target="candidate")
|
||||||
print(netconf_reply)
|
print(netconf_reply)
|
||||||
reply = nc_conn.commit()
|
reply = nc_conn.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user