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

Network OS NETCONF Operations Guide
281
53-1003231-02
VLAN configuration and management
21
1. To select the type of STP, issue an <edit-config> RPC to configure the <protocol> node in the
urn:brocade.com:mgmt:brocade-interface namespace, and specify the following elements.
a. Under the <protocol> node, specify the <spanning-tree> node element in the
urn:brocade.com:mgmt:brocade-xstp namespace.
b. Under the <spanning-tree> node element, specify the <mstp> node element.
c. Under the <mstp> node, specify the <shutdown> leaf element, and include the delete
operation in the opening tag to enable MSTP.
2. To enable spanning tree on the VLAN, issue an <edit-config> RPC to configure the
<interface-vlan> node in the urn:brocade.com:mgmt:brocade-interface namespace, and
specify the following elements:
a. Under the <interface-vlan> node, specify the <interface>/<vlan> hierarchy of node
elements.
b. Under the <vlan> element, specify the <name> element and set it to the VLAN ID.
c. Under the <vlan> element, specify the <spanning-tree> node element in the
urn:brocade.com:mgmt:brocade-xstp namespace.
d. Under the <spanning-tree> node, include the <stp-shutdown> element, and include the
delete operation in the opening tag to enable STP on the VLAN.
The following example enables MSTP on VLAN 1002 using one RPC.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1905" 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”>
<mstp>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
</mstp>
</spanning-tree>
</protocol>
<interface-vlan xmlns="urn:brocade.com:mgmt:brocade-interface">
<interface>
<vlan>
<name>1002</name>
<spanning-tree xmlns=”urn:brocade.com:mgmt:brocade-xstp”/>
<stp-shutdown
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
</spanning-tree>
</vlan>
</interface>
</interface-vlan>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1905" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>