10-13-2017 02:57 AM - edited 03-01-2019 04:01 AM
Hello all,
I am writing a Netconf service for a ISR4k router.
So far, I have installed the pioneer package, added a device in the NSO (v4.3) and connected it using NETCONF.
All is working fine except one thing. I am able to retrieve the device config using this command:
devices device my-netconf-device pioneer netconf get-config
But the following command is not working:
devices device my-netconf-device pioneer netconf get
It stops saying the command is timeout (Error: application timeout) but after that, I am not able to reach my device anymore (always have the Error: application communication failure). I need to restart ncs to make it work fine again.
Did I did something wrong?
Thank you
Solved! Go to Solution.
10-16-2017 01:21 AM
The problem is likely that the device requires a lot of time to return the entire operational state. For a device in real operations, this can be huge, and not a normal thing to ask for. I suggest you don't run the plain netconf get towards this device, but if this is important you can update the pioneer source code to increase the timeout.
Once the command times out, pioneer loses sync with NSO, and no further commands will work unfortunately. As you say, you can restart NSO to fix this. Less disruptive options are to reload packages, restart the python-vm:s or specifically the pioneer python vm.
10-16-2017 01:21 AM
The problem is likely that the device requires a lot of time to return the entire operational state. For a device in real operations, this can be huge, and not a normal thing to ask for. I suggest you don't run the plain netconf get towards this device, but if this is important you can update the pioneer source code to increase the timeout.
Once the command times out, pioneer loses sync with NSO, and no further commands will work unfortunately. As you say, you can restart NSO to fix this. Less disruptive options are to reload packages, restart the python-vm:s or specifically the pioneer python vm.
10-16-2017 12:07 PM
Thank you Jan.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide