cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1902
Views
10
Helpful
3
Replies

Accessing service-meta-data with RESTCONF

rslaski
Spotlight
Spotlight

Hi,

How could we get backpointers for the configuration of the device over RESTCONF?

For example:

rslaski@ncs# show running-config devices device AR_DCI230 config dcs:interface Vxlan 1 | display service-meta-data
devices device AR_DCI230
 config
  ! Refcount: 1
  ! Backpointer: [ /TMPL:TMPL/TMPL:EVPN/TMPL:EVPN_L3[TMPL:name='mb_l3_boarder'] ]
  dcs:interface Vxlan1
   vxlan udp-port 4789
   ! Refcount: 1
   ! Refcount: 1 (/devices/device{AR_DCI230}/config/dcs:interface/Vxlan{1}/vxlan/vrf{mb_l3_boarder})
   ! Backpointer: [ /TMPL:TMPL/TMPL:EVPN/TMPL:EVPN_L3[TMPL:name='mb_l3_boarder'] ] (/devices/device{AR_DCI230}/config/dcs:interface/Vxlan{1}/vxlan/vrf{mb_l3_boarder})
   vxlan vrf mb_l3_boarder vni 85001
  !
 !
!

For RESTCONF query I did not find any parameters to pass that option. Or should we look at a different RESTCONF tree section? All I could get was a plain configuration:

http://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device=AR_DCI230/config?fields=tailf-ned-arista-dcs:interface/Vxlan&depth=unbounded

{
  "tailf-ncs:config": {
    "tailf-ned-arista-dcs:interface": {
      "Vxlan": [
        {
          "id": 1,
          "vxlan": {
            "udp-port": 4789,
            "vrf": [
              {
                "name": "mb_l3_boarder",
                "vni": 85001
              }
            ]
          }
        }
      ]
    }
  }
}

 

3 Replies 3

ramkraja
Cisco Employee
Cisco Employee

Hello,

This seems to be a bug in our RESTCONF implementation.

Currently, you can retrieve other attributes like tags and annotations over RESTCONF, but not FASTMAP specific ones like refcounts and backpointers.

Please create a support request for it to be fixed.

Thanks,

Ram

Has this been fixed?

rohitspostowl
Level 1
Level 1
curl -X GET --header 'Accept: application/yang-data+json' --header 'Authorization: Basic xxxxxxxx' 'http://{{NSO_IP}}:{{PORT_NO}}/restconf/data/devices/device={{device_name}}?content=config&with-service-meta-data=true'

Hope this helps 

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?