Spanning tree configuration and management, Enabling stp, rstp, mstp, pvst, or rapid pvst – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 370

338
Network OS NETCONF Operations Guide
53-1003231-02
Spanning tree configuration and management
24
</rpc>
<rpc-reply message-id="2003" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Spanning tree configuration and management
This section provides procedures for setting global spanning tree parameters.
NOTE
Issue the <bna-config-cmd> RPC to save your configuration changes.
Enabling STP, RSTP, MSTP, PVST, or Rapid PVST
You enable STP to detect or avoid loops. STP is not required in a loop-free topology. You must turn
off one form of STP before turning on another form. By default, STP, RSTP, MSTP, PVST, and Rapid
PVST are not enabled.
To enable STP, RSTP, MSTP, PVST, or Rapid PVST, perform the following steps.
1. Issue the <edit-config> RPC to configure the <protocol> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
2. Under the <protocol> node, include the <spanning-tree> node from the
urn:brocade.com:mgmt:brocade-xstp namespace.
3. Under the <spanning-tree> node, include the <stp>, <rstp>, <mstp>, <pvst>, or <rpvst> node
element.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2004" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<protocol xmlns="urn:brocade.com:mgmt:brocade-interface">
<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp”>
<rstp/>
</spanning-tree>
</protocol>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2004" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>