Configuring Peer Template Inheritance
Configuring the Peering Address as Nexthop
Configuring the Peering Address as Nexthop
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "nh-self",
"inheritContPeerPolicyCtrl": "",
"nhSelfAll": "no",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<ctrl>nh-self</ctrl>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<nhSelfAll>false</nhSelfAll>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
next-hop-self
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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
Deleting the Peering Address as Nexthop
Deleting the Peering Address as Nexthop
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "",
"inheritContPeerPolicyCtrl": "nh-self",
"nhSelfAll": "no",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<ctrl></ctrl>
<inheritContPeerPolicyCtrl>nh-self</inheritContPeerPolicyCtrl>
<nhSelfAll>false</nhSelfAll>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
no next-hop-self
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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
Configuring the Address as Nexthop for All Routes
Configuring the Address as Nexthop for All Routes
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "",
"inheritContPeerPolicyCtrl": "",
"nhSelfAll": "yes",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<ctrl></ctrl>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<nhSelfAll>true</nhSelfAll>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
next-hop-self all
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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
Deleting the Address Configured as Nexthop for All Routes
Deleting the Address Configured as Nexthop for All Routes
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "",
"inheritContPeerPolicyCtrl": "nh-self-all",
"nhSelfAll": "no",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<ctrl></ctrl>
<inheritContPeerPolicyCtrl>nh-self-all</inheritContPeerPolicyCtrl>
<nhSelfAll>false</nhSelfAll>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
no next-hop-self all
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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
Configuring the Minimum Interval Between Sending BGP Routing Updates
Configuring the Minimum Interval Between Sending BGP Routing Updates
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"advIntvl": "199",
"inheritContPeerPolicyCtrl": "",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<advIntvl>199</advIntvl>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
advertisement-interval 199
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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
Deleting the Minimum Interval Between Sending BGP Routing Updates
Deleting the Minimum Interval Between Sending BGP Routing Updates
POST http://<mgmt0_IP>/api/mo/sys.json
{
"topSystem": {
"children": [
{
"bgpEntity": {
"children": [
{
"bgpInst": {
"attributes": {
"asn": "100"
},
"children": [
{
"bgpDom": {
"attributes": {
"name": "default"
},
"children": [
{
"bgpPeer": {
"attributes": {
"addr": "1.2.3.4",
"inheritContPeerCtrl": ""
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"inheritContPeerPolicyCtrl": "",
"sendComExt": "enabled",
"type": "vpnv4-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"advIntvl": "199",
"inheritContPeerPolicyCtrl": "advertisement-interval",
"type": "vpnv4-ucast"
}
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
{
imdata:[]
}
<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>vpnv4-ucast</type>
<inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl>
<sendComExt>enabled</sendComExt>
</PeerAf-list>
</af-items>
</Peer-list>
<Peer-list>
<addr>4.3.2.1</addr>
<inheritContPeerCtrl></inheritContPeerCtrl>
<peerImp>PEER</peerImp>
<af-items>
<PeerAf-list>
<type>vpnv4-ucast</type>
<advIntvl>199</advIntvl>
<inheritContPeerPolicyCtrl>advertisement-interval</inheritContPeerPolicyCtrl>
</PeerAf-list>
</af-items>
</Peer-list>
</peer-items>
</Dom-list>
</dom-items>
</inst-items>
</bgp-items>
</System>
Note: This example was added in Release 9.2(3).
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
neighbor 1.2.3.4
address-family vpnv4 unicast
send-community extend
neighbor 4.3.2.1
inherit peer PEER
address-family vpnv4 unicast
no advertisement-interval 199
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
For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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