openconfig-demo-with-juniper-devices
openconfig-demo-with-juniper-devices copied to clipboard
mismatch neighbor address in wiki page
wiki
- Openconfig demo using NetConf over SSH. Let's use the operation get-config with a filter to retrieve a specific neighbor subtree from the active configuration:
<rpc>
<get-config>
<source><running/></source>
<filter type="subtree">
<bgp xmlns="http://openconfig.net/yang/bgp">
<neighbors>
<neighbor>
<neighbor-address>**10.10.0.2**</neighbor-address>
</neighbor>
</neighbors>
</bgp>
</filter>
</get-config>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/16.1I0/junos">
<data>
<bgp xmlns="http://openconfig.net/yang/bgp">
<neighbors>
<neighbor>
<neighbor-address>**192.168.1.2**</neighbor-address>
<config>
<peer-as>110</peer-as>
<peer-group>OC</peer-group>
</config>
</neighbor>
</neighbors>
</bgp>
</data>
</rpc-reply>