Configuring Mixed ECMP
Configuring Mixed ECMP
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"
}
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>
CLI Commands
The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.
router bgp 100
address-family l2vpn evpn
maximum-paths mixed 32
neighbor 111.11.11.11
remote-as 2000
address-family l2vpn evpn
no advertise-gw-ip
vrf cust_1
address-family ipv4 unicast
export-gateway-ip
maximum-paths mixed 32
address-family ipv6 unicast
export-gateway-ip
maximum-paths mixed 32
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload: https://developer.cisco.com/media/dme/index.html
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html