Open VDavidCC opened 4 years ago
Okay, there is a probably bug in inline_transfer. As a workaround, you would need to put your configuration changes in an external file.
In other words, call:
load_merge_candidate(filename="my_changes.txt")
That solved the problem, thank you!
I am going to re-open() to track the original issue.
@ktbyers
here is my code that i am running:
import json from napalm import get_network_driver from getpass import getpass driver = get_network_driver('ios')
device = driver( hostname='10.0.0.0', username='adm', password=getpass(), optional_args={'inline_transfer': ''} ) device.open()
device.load_merge_candidate(filename='config.txt')
diffs = device.compare_config()
if len(diffs) > 0: print(diffs) device.commit_config() else: print('no change is required') device.discard_config()
device.close()
i have privilege 15 access, and i still get this error: scp.SCPException: Privilege denied.
I'm using this scipt:
But when i run got this error:
Then i tried adding inline_transfer = True in optional args, but still don't work now im getting this error:
I know that there is a workaround using a user privilege 15 but for my purpose is nos possible to do that, please help me.
i typed this on the cisco switch:
But i'm not getting any response or log...