Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hi,
I can use RESTCONF to fetch the ssh host keys for a single device like this:
curl -X POST \ http://x.x.x.x:8080/restconf/operations/devices/device=P5/ssh/fetch-host-keys \ -H 'Authorization: Basic xxxxxxxxxxxx=' \ -H 'Cache-Control: no-cache'...
Hi.
I'm using IOS XR with NETCONF NEDs. I'd like to use the REST API for live-status to retrieve the source-address and sid-value from this model:
pyang -f tree Cisco-IOS-XR-clns-isis-oper.yang --tree-path isis/instances/instance/topologies/topo...
A couple months ago, I posted some simple sample apps to configure gRPC dial-in telemetry configurations using the OpenConfig YANG model:nc-create-oc-telemetry-30-ydk.py - dialin with single sensor-group/subscriptionnc-create-oc-telemetry-32-ydk.py -...
Want to encode an OpenConfig Telemetry configuration in XML? Here are some sample apps to get you started:cd-encode-oc-telemetry-30-ydk.py - dialin single sensor-group/subscriptioncd-encode-oc-telemetry-32-ydk.py - dialin multiple sensor-pathscd-enc...
Just posted some simple sample apps to configure gRPC dial-in telemetry configurations using the OpenConfig YANG model:nc-create-oc-telemetry-30-ydk.py - dialin with single sensor-group/subscriptionnc-create-oc-telemetry-32-ydk.py - dialin with multi...
Hi, Tejaswini.
It looks like there was a syntax problem in a couple of the 6.1.3 models in github. I'm following up with this and hope to get corrections posted to github soon. If you want to make progress in the meantime, you can manually replace ...
That would work for my use case. However, I can't figure out how to do that in RESTCONF.
These don't work:
/restconf/operations/devices/ssh/fetch-host-keys
/restconf/operations/devices/device/ssh/fetch-host-keys
/restconf/operations/devices/devi...
Thanks for your help, Jan!
After wrestling with the module name and the keyless lists in the model, I ended up with this query that now works:
curl -X GET \ 'http://X.X.X.X:8080/restconf/data/devices/device=P3/live-status/Cisco-IOS-XR-clns-isis...
Hi, Jan.
Can you give an example of using RESTCONF with live status with YANG NEDs?
This REST API works:
/api/operational/devices/device/P3/live-status/clns-isis-oper:isis/instances/instance/ISIS-CORE
I assumed it would translate to this RESTCO...
Hi, Jan.
Can you give an example of using RESTCONF with live status with YANG NEDs?
This REST API works:
/api/operational/devices/device/P3/live-status/clns-isis-oper:isis/instances/instance/ISIS-CORE
I assumed it would translate to this RESTCO...