Configuring Mixed ECMP
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/bgp/inst.json
{ "bgpInst": { "attributes": { "asn": "100" }, "children": [ { "bgpDom": { "attributes": { "name": "cust_1" }, "children": [ { "bgpDomAf": { "attributes": { "exportGwIp": "enabled", "maxMxdEcmp": "32", "type": "ipv6-ucast" } } }, { "bgpDomAf": { "attributes": { "exportGwIp": "enabled", "maxMxdEcmp": "32", "type": "ipv4-ucast" } } } ] } }, { "bgpDom": { "attributes": { "name": "default" }, "children": [ { "bgpPeer": { "attributes": { "addr": "111.11.11.11", "asn": "2000", "inheritContPeerCtrl": "" }, "children": [ { "bgpPeerAf": { "attributes": { "advGwIp": "disabled", "inheritContPeerPolicyCtrl": "", "type": "l2vpn-evpn" } } } ] } }, { "bgpDomAf": { "attributes": { "maxMxdEcmp": "32", "type": "l2vpn-evpn" } } } ] } } ] } }
Response
{ imdata:[] }
Copy
<System> <bgp-items> <inst-items> <asn>100</asn> <dom-items> <Dom-list> <name>cust_1</name> <af-items> <DomAf-list> <type>ipv6-ucast</type> <exportGwIp>enabled</exportGwIp> <maxMxdEcmp>32</maxMxdEcmp> </DomAf-list> <DomAf-list> <type>ipv4-ucast</type> <exportGwIp>enabled</exportGwIp> <maxMxdEcmp>32</maxMxdEcmp> </DomAf-list> </af-items> </Dom-list> <Dom-list> <name>default</name> <peer-items> <Peer-list> <addr>111.11.11.11</addr> <asn>2000</asn> <inheritContPeerCtrl></inheritContPeerCtrl> <af-items> <PeerAf-list> <type>l2vpn-evpn</type> <advGwIp>disabled</advGwIp> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> </PeerAf-list> </af-items> </Peer-list> </peer-items> <af-items> <DomAf-list> <type>l2vpn-evpn</type> <maxMxdEcmp>32</maxMxdEcmp> </DomAf-list> </af-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>