Configuring a Peering Address as Nexthop (Values Inherited From a Peer)
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": [ { "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": "no", "type": "ipv6-ucast" }, "children": [ { "bgpPolicyInheritRule": { "attributes": { "name": "Pol1", "seq": "123" } } } ] } } ] } }, { "bgpPolicyCont": { "attributes": { "inheritContPeerPolicyCtrl": "", "name": "Pol1" } } } ] } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
<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>false</nhSelfAll> <pol-items> <PolicyInheritRule-list> <name>Pol1</name> <seq>123</seq> </PolicyInheritRule-list> </pol-items> </PeerAf-list> </af-items> </Peer-list> </peer-items> <policycont-items> <PolicyCont-list> <name>Pol1</name> <inheritContPeerPolicyCtrl></inheritContPeerPolicyCtrl> </PolicyCont-list> </policycont-items> </Dom-list> </dom-items> </inst-items> </bgp-items> </System>