You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a Cisco ios configuration option, however you would go about that. You can manually add it or do a one time merge_config similar to how you are trying to do a replace.
Side note, this is for napalm-ansible, you are not showing anything ansible related though.
it s clear for me the archive option,
the real obstacle i am occurring is that always shows an error at method ios.commit_config()
what do you suggest
above is the code
please can some-body help
ios.commit_config() error here is the following scripts
from napalm import get_network_driver
driver = get_network_driver('ios')
optional_args = {'secret': 'cisco'} #cisco is the enable password
ios = driver('10.1.1.40', 'admin', 'cisco', optional_args=optional_args)
ios.open()
ios.load_replace_candidate(filename='config.txt')
diff = ios.compare_config()
#print(diff)
if len(diff):
print(diff)
print('Commit changes...')
ios.commit_config()
print('Done')
else:
print('No changes required')
ios.discard_config()
answer = input('Rollback config?')
if answer == 'yes':
ios.rollback()
ios.close()
The text was updated successfully, but these errors were encountered: