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