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 } ] } } ] } } }