Configuring a Peering Address as Nexthop
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPeer": { "attributes": { "addr": "4.3.2.1", "inheritContPeerCtrl": "", "peerImp": "PEER" }, "children": [ { "bgpPeerAf": { "attributes": { "ctrl": "nh-self", "inheritContPeerPolicyCtrl": "", "nhSelfAll": "no", "type": "vpnv4-ucast" } } } ] } }, { "bgpPeerCont": { "attributes": { "inheritContPeerCtrl": "", "name": "33.1.1.1" }, "children": [ { "bgpPeerAf": { "attributes": { "inheritContPeerPolicyCtrl": "", "sendComExt": "enabled", "type": "vpnv4-ucast" } } } ] } } ] } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>default</name> <peer-items> <Peer-list> <addr>4.3.2.1</addr> <inheritContPeerCtrl></inheritContPeerCtrl> <peerImp>PEER</peerImp> <af-items> <PeerAf-list> <type>vpnv4-ucast</type> <ctrl>nh-self</ctrl> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> <nhSelfAll>false</nhSelfAll> </PeerAf-list> </af-items> </Peer-list> </peer-items> <peercont-items> <PeerCont-list> <name>33.1.1.1</name> <inheritContPeerCtrl></inheritContPeerCtrl> <af-items> <PeerAf-list> <type>vpnv4-ucast</type> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> <sendComExt>enabled</sendComExt> </PeerAf-list> </af-items> </PeerCont-list> </peercont-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>