openconfig-demo-with-juniper-devices icon indicating copy to clipboard operation
openconfig-demo-with-juniper-devices copied to clipboard

mismatch neighbor address in wiki page

Open xijq227 opened this issue 5 years ago • 0 comments

wiki

  1. 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>

xijq227 avatar Jul 24 '18 08:07 xijq227