Configuring a Route Map to Specify Import Criteria
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp.json
{ "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPeer": { "attributes": { "addr": "1.2.3.4", "inheritContPeerCtrl": "" }, "children": [ { "bgpPeerAf": { "attributes": { "inheritContPeerPolicyCtrl": "", "type": "l2vpn-evpn" }, "children": [ { "bgpImportRt": { "attributes": { "importRt": "yes", "importType": "vpn-unicast", "reoriginate": "no", "rtMap": "SampleString_123" }}}]}}]}}]}}]}}]}}
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>default</name> <peer-items> <Peer-list> <addr>1.2.3.4</addr> <inheritContPeerCtrl></inheritContPeerCtrl> <af-items> <PeerAf-list> <type>l2vpn-evpn</type> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> <import-items> <ImportRt-list> <importType>vpn-unicast</importType> <importRt>true</importRt> <reoriginate>false</reoriginate> <rtMap>SampleString_123</rtMap> </ImportRt-list> </import-items> </PeerAf-list> </af-items> </Peer-list> </peer-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>