Enabling ospf on the router, Disabling ospf on the router – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 556

524
Network OS NETCONF Operations Guide
53-1003231-02
Performing basic OSPF configuration
34
Enabling OSPF on the router
OSPF can be activated only in the RBridge ID context. To enable OSPF on the router, perform the
following steps.
1. Issue the <edit-config> RPC to configure the <rbridge-id> node in the
urn:brocade.com:mgmt:brocade-rbridge namespace.
2. Under the <rbridge-id> node, include the <rbridge-id> leaf element and specify the switch for
which you want to enable OSPF.
3. Under the <rbridge-id> node, include the <router> node element.
4. Under the <router> node, include the <ospf> node element to enable OSPF.
The <ospf> node element contains elements that allow you to configure the global OSPF
parameters. However, the “presence=true” statement that qualifies the <ospf> container
definition in the brocade-ospf.yang file allows the <ospf> node element to also function as a
leaf element.
The following example enables OSPF on routing bridge 101.
<rpc message-id="2602" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<rbridge-id xmlns="urn:brocade.com:mgmt:brocade-rbridge">
<rbridge-id>101</rbridge-id>
<router>
<ospf xmlns="urn:brocade.com:mgmt:brocade-ospf/>
</router>
</rbridge-id>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2602" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Disabling OSPF on the router
To disable OSPF, include the delete operation in the <ospf> header tag, as shown in the following
example RPC.
<rpc message-id="2603" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<rbridge-id xmlns="urn:brocade.com:mgmt:brocade-rbridge">
<rbridge-id>101</rbridge-id>
<router>
<ospf xmlns="urn:brocade.com:mgmt:brocade-ospf
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
</router>