summaryrefslogtreecommitdiffstats
path: root/samples/openconfig-local-routing/add_route_with_nhop.xml
blob: 8089c4db28c8f6d40240ed1ff78ae6df32f667cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- XML for edit-config RPC to set a route with prefix and next-hop -->
<local-routes xmlns="http://openconfig.net/yang/local-routing">
    <static-routes>
        <static>
            <prefix>10.0.0.2/24</prefix>
            <config>
                <prefix>10.0.0.2/24</prefix>
            </config>
            <next-hops>
                <next-hop>
                    <index>0</index>
                    <config>
                        <index>0</index>
                        <next-hop>10.0.0.1</next-hop>
                    </config>
                </next-hop>
            </next-hops>
        </static>
    </static-routes>
</local-routes>