Disabling Route Advertisement with Local Label to Peer (For a Peer Polic Template)
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp.json
{ "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPolicyCont": { "attributes": { "advLocalLblRt": "disabled", "inheritContPeerPolicyCtrl": "", "name": "pol" }}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>default</name> <policycont-items> <PolicyCont-list> <name>pol</name> <advLocalLblRt>disabled</advLocalLblRt> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> </PolicyCont-list> </policycont-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>