Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 363

Network OS NETCONF Operations Guide
331
53-1003231-02
Configuring STP
24
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/13</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<spanning-tree>
<priority>32</priority>
</spanning-tree>
</tengigabitethernet>
</interface>
“Specifying the port priority”
8. Optional: Enable the guard root feature on a port.
All other switch ports connected to other switches and bridges are automatically placed in
blocking mode.
Do not apply the guard root to ports connected to workstations or PCs: these ports remain in
the forwarding state.
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/1</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp">
<guard>
<root/>
</guard>
</spanning-tree>
</tengigabitethernet>
</interface>
For detailed information, refer to
“Enabling the guard root (STP and RSTP)”
9. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example enables STP, designates a root switch, enables port fast on two ports, and
establishes the root port.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2000" 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>
<stp>
<bridge-priority>28672</bridge-priority>
</stp>
</spanning-tree>
</protocol>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/10</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<spanning-tree>
<portfast>