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

334
Network OS NETCONF Operations Guide
53-1003231-02
Configuring RSTP
24
The port priority range is 0 through 240 in increments of 16. The default is 128. A lower
number designates a higher priority.
<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 xmlns="urn:brocade.com:mgmt:brocade-xstp">
<priority>32</priority>
</spanning-tree>
</tengigabitethernet>
</interface>
“Specifying the port priority”
9. 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)”
10. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example enables RSTP, configures RSTP parameters, configures two interfaces as
edge ports, and designates one interface the root port.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2001" 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>
<rstp>
<bridge-priority>28582</bridge-priority>
<forward-delay>20</forward-delay>
<max-age>25<max-age>
<error-disabled-timeout>
<enable/>
<interval>60</interval>
</error-disabled-timeout>
<port-channel>