Configuring Peer Policy Inheritance
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" }, "children": [ { "bgpPeerAf": { "attributes": { "type": "ipv4-ucast" }, "children": [ { "bgpPolicyInheritRule": { "attributes": { "name": "SampleString_123", "seq": "27484" }}}]}}]}}]}}]}}]}}
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> <af-items> <PeerAf-list> <type>ipv4-ucast</type> <pol-items> <PolicyInheritRule-list> <name>SampleString_123</name> <seq>27484</seq> </PolicyInheritRule-list> </pol-items> </PeerAf-list> </af-items> </PeerIf-list> </peerif-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>