07-29-2020 07:27 AM
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 } ] } } ] } } }
07-31-2020 08:23 AM
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
01-20-2021 01:27 PM
Has this been fixed?
02-03-2023 09:27 AM
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
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