Importing the Routes into another Address Family (L2VPN EVPN)
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "bgpEntity": { "children": [ { "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPolicyCont": { "attributes": { "inheritContPeerPolicyCtrl": "", "name": "PeerPol_1" }, "children": [ { "bgpImportRt": { "attributes": { "importRt": "yes", "importType": "l2vpn-evpn", "reoriginate": "no", "rtMap": "SampleString_123" } } } ] } } ] } }, { "bgpDom": { "attributes": { "name": "VRF_1" } } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <bgp-items>bfhttvevejbr <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>default</name> <policycont-items> <PolicyCont-list> <name>PeerPol_1</name> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> <import-items> <ImportRt-list> <importType>l2vpn-evpn</importType> <importRt>true</importRt> <reoriginate>false</reoriginate> <rtMap>SampleString_123</rtMap> </ImportRt-list> </import-items> </PolicyCont-list> </policycont-items> </Dom-list> <Dom-list> <name>VRF_1</name> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>