Configuring the Peering Address as the Next Hop
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp/inst.json
{ "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPeer": { "attributes": { "addr": "1.2.3.4", "inheritContPeerCtrl": "" }, "children": [ { "bgpPeerAf": { "attributes": { "ctrl": "nh-self", "inheritContPeerPolicyCtrl": "", "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>1.2.3.4</addr> <inheritContPeerCtrl></inheritContPeerCtrl> <af-items> <PeerAf-list> <type>vpnv4-ucast</type> <ctrl>nh-self</ctrl> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> </PeerAf-list> </af-items> </Peer-list> </peer-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>