Applying a Route Map to a Network Prefix
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp.json
{ "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "123" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpDomAf": { "attributes": { "type": "ipv4-mcast" }, "children": [ { "bgpAdvPrefix": { "attributes": { "addr": "0.0.0.0/2", "rtMap": "Map_1" }}}]}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>123</asn> <dom-items> <Dom-list> <name>default</name> <af-items> <DomAf-list> <type>ipv4-mcast</type> <prefix-items> <AdvPrefix-list> <addr>0.0.0.0/2</addr> <rtMap>Map_1</rtMap> </AdvPrefix-list> </prefix-items> </DomAf-list> </af-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>