08-30-2018 08:25 AM
Hi all,
I am working with the NSO RESTCONF API, but when I try to read the configuration for a device, I get a timeout while it took less than 5sec using NETCONF.
My RESTCONF request is the following :
GET /restconf/data/devices/device={device-name} HTTP/1.1 Host: {server}:{port} Accept: application/yang-data+json Cache-Control: no-cache Authorization: Basic YWRtaW46YWRtaW4=
Thanks,
Loïc
[SOLUTION from Roque Gagliano]
The /data resource in RESTCONF is a combination of both configuration and state information for the tree. So, what is happening is that NSO is querying all the state information for that device and thus taking a very long time and maybe timeout. If you want only configuration, you should run something like:
http://{{server}}:{{port}}/restconf/data/devices/device=pe0?content=config
Solved! Go to Solution.
09-03-2018 01:49 AM
09-03-2018 01:49 AM
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