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

336
Network OS NETCONF Operations Guide
53-1003231-02
Configuring MSTP
24
4. Under the <mstp> node, include the <region> node element and specify an MSTP region.
“Specifying a name for an MSTP region”
5. Under the <mstp> node, include the <revision> element and specify a revision number for the
MSTP configuration.
“Specifying a revision number for MSTP configuration”
6. Under the <mstp> node, specify an <instance> node for each MSTP instance you want to
configure.
7. Under each <instance> node, specify the following leaf nodes.
a. In the <id> element, specify the instance ID.
b. In the <vlan> element, specify the VLANs to be included in this MSTP instance.
c. In the <priority> element, specify the instance priority.
“Mapping a VLAN to an MSTP instance”
8. Under the <mstp> node, include the <max-hops> leaf element and specify the maximum hops
for a BPDU to prevent the messages from looping indefinitely on the interface.
“Specifying the maximum number of hops for a BPDU (MSTP)”
9. Issue the <bna-config-cmd> RPC to save the running config file to the startup config file and
save the configuration changes.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2002" 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>
<mstp>
<region>brocade1</region>
<revision>1</revision>
<instance>
<id>1</id>
<vlan>2,3</vlan>
<priority>4096</priority>
</instance>
<instance>
<id>2</id>
<vlan>4-6</vlan>
</instance>
<max-hops>25</max-hops>
</mstp>
</spanning-tree>
</protocol>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2002" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>