Configuring Peer Template Inheritance
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": "ipv6-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "",
"inheritContPeerPolicyCtrl": "",
"nhSelfAll": "yes",
"type": "ipv6-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>ipv6-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>ipv6-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 ipv6 unicast
send-community extended
neighbor 4.3.2.1
inherit peer PEER
address-family ipv6 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 as Nexthop for All Routes
Deleting 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": "ipv6-ucast"
}
}
}
]
}
},
{
"bgpPeer": {
"attributes": {
"addr": "4.3.2.1",
"inheritContPeerCtrl": "",
"peerImp": "PEER"
},
"children": [
{
"bgpPeerAf": {
"attributes": {
"ctrl": "",
"inheritContPeerPolicyCtrl": "nh-self-all",
"nhSelfAll": "no",
"type": "ipv6-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>ipv6-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>ipv6-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 ipv6 unicast
send-community extended
neighbor 4.3.2.1
inherit peer PEER
address-family ipv6 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