Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 542

Advertising
background image

510

Network OS NETCONF Operations Guide

53-1003231-02

Configuring and activating an IP route policy

32

2. Create the prefix and next hop for each static route.

NOTE

The following example is for a standalone router and therefore configures the <ip> node in the
urn:brocade.com:mgmt:brocade--common-def namespace. For a node in a Brocade VCS
Fabric, configure the <ip> node in the urn:brocade.com:mgmt:brocade-rbridge namespace
instead.

<rpc message-id="913" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<ip xmlns="urn:brocade.com:mgmt:brocade-common-def">

<route xmlns="urn:brocade.com:mgmt:brocade-rtm>

<static-route-nh>

<static-route-dest>11.11.11.0/24</static-route-dest>

<static-route-next-hop>2.2.2.1</static-route-next-hop>

</static-route-nh>

<static-route-nh>

<static-route-dest>11.11.11.0/24</static-route-dest>

<static-route-next-hop>2.2.2.2</static-route-next-hop>

</static-route-nh>

</route>

</ip>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="913" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

3. Apply the route map to the OSPF protocol to redistribute the static routes.

NOTE

The following example is for a standalone router and therefore configures the <router> node in
the urn:brocade.com:mgmt:brocade--common-def namespace. For a node in a Brocade VCS
Fabric, configure the <router> node in the urn:brocade.com:mgmt:brocade-rbridge namespace
instead.

<rpc message-id="913" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<router xmlns="urn:brocade.com:mgmt:brocade-common-def">

<hide-ospf-holder

xmlns="urn:brocade.com:mgmt:brocade-ospf>

<ospf>

<redistribute>

<static>

<static-route-map>test<static-route-map>

</static>

</redistribute>

<area>

Advertising