-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyIOSXR #40
Comments
Hi Anne, this is the right approach. Does the code or device return any errors? What's the error you are seeing? |
Hi Elisa, Sorry, rookie mistake! The error was in my json file where I had replaced a " with a ' by mistake.. The code above now replaces the running configuration without errors! However, it does not always commit the configuration into the commit database. I'm then left with an error that target buffer is empty, as a response to the commit request, i.e.:
This problem seam to appear sporadically regardless of content of the configuration text file I try to push to the device. |
Hi @fooelisa! I really can't figure this out and would like to ask for your help. The code runs without errors, but it still wont commit the changes into the devices database. I've hardcoded the device information into the script to avoid errors caused by the json file I'm using netmiko 1.3.0 and this is the code:
Do you have any idea of what could be wrong? Is there way to integrate some form of delay in the commands to exclude that the error is not due to slow connections? Thank you in advance! Best Regards, Update: |
Hi Anne, |
Hi @thorko! Best Regards, |
Hi!
I'm been working on a program where I want to push configuration to Cisco IOS XR devices and I run into problems when trying to use the code below.
This is my current code snippets:
I've made sure that the device xml agent is configured with 'iteration off' and I've tried different combinations of locking and unlocking the configuration, and wrapping it in 'try' statements to figure out where the problem lies.
The device just wont accept the load_candidate, compare_replace and commit_replace command.
Have I missed something obvious with the pyIOSXR library?
Best regards,
Anne Golinski
The text was updated successfully, but these errors were encountered: