cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2184
Views
0
Helpful
1
Comments
jason.belk
Level 1
Level 1

Just putting this on the NSO community, as I had trouble finding the answer. For a yang list which has a key which has a backslash in it, you need to put in special characters instead of the backslash:

instead of:

 

http://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device=netsim-ios-0/config/tailf-ned-cisco-ios:interface/FastEthernet=0/0

 

you would put:

http://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device=netsim-ios-0/config/tailf-ned-cisco-ios:interface/FastEthernet=0%2F0

 

cross-post, also see this post: https://community.cisco.com/t5/cisco-digital-network/interrogate-ios-xe-interfaces-with-restconf-with-postman/td-p/3463341

1 Comment
DeanMoore
Level 1
Level 1

Im struggling to get this to work, this is my URL

 

http://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device={{device}}/config/tailf-ned-cisco-ios:interface/interface=0%2F0%2F0

 

When getting all interfaces I see this in the output but cant seem to specify the interface directly

 

 
{
  "tailf-ned-cisco-ios:interface": {
    "Ethernet": [
      {
        "name": "0/2/0",
        "negotiation": {
          "auto": false
        },
        "ip": {
          "no-address": {
            "address": false
          }
        }
      }
    ],
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: