Disabling stp on a vlan – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 314

Advertising
background image

282

Network OS NETCONF Operations Guide

53-1003231-02

VLAN configuration and management

21

Disabling STP on a VLAN

Once all of the interface ports have been configured for a VLAN, you can disable STP for all
members of the VLAN with a single RPC.

To disable STP for a VLAN, perform the following steps.

1. Issue an <edit-config> RPC to configure the <interface-vlan> node in the

urn:brocade.com:mgmt:brocade-interface namespace.

2. Under the <interface-vlan> node, specify the <interface>/<vlan> hierarchy of node elements.

3. Under the <vlan> node element, include the following leaf elements:

a. In the <name> element, specify the VLAN ID.

b. Include the <spanning-tree>/<stp-shutdown> elements to disable spanning tree on the

specified VLAN.

The following example disables STP on VLAN 1002.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="1906" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<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/>

</spanning-tree>

</vlan>

</interface>

</interface-vlan>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1906" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Configuring an interface port as a Layer 2 switch port

To configure the interface as a Layer 2 switch port, perform the following steps.

1. Issue an <edit-config> RPC to configure the <interface> node in the

urn:brocade.com:mgmt:brocade-interface namespace.

2. Under the <interface> node, specify the interface type element (<gigabitethernet>,

<tengigabitethernet>, <fortygigabitethernet>, or <hundredgigabitethernet>).

3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>, or

<hundredgigabitethernet> node element, specify the following elements:

Advertising