Configuring a BGP Neighbor
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp.json
{ "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPeerIf": { "attributes": { "id": "eth1/2", }}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>default</name> <peerif-items> <PeerIf-list> <id>eth1/2</id> </PeerIf-list> </peerif-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>