Specifying the bridge priority on a per-vlan basis – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 373

Advertising
background image

Network OS NETCONF Operations Guide

341

53-1003231-02

Spanning tree configuration and management

24

<config>

<protocol xmlns="urn:brocade.com:mgmt:brocade-interface">

<spanning-tree xmlns="urn:brocade.com:mgmt:brocade-xstp">

<mstp>

<bridge-priority>20480</bridge-priority>

</mstp>

</spanning-tree>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Specifying the bridge priority on a per-VLAN basis

Using PRVT or Rapid-PVST, you may specify the bridge-priority for a specific VLAN. If the VLAN
parameter is not provided, the priority value is applied globally for all per-VLAN instances. But for
the VLANs which have been configured explicitly, the per-VLAN configuration takes precedence over
the global configuration.

The VLAN ID value can be 1 through 3583. VLAN IDs 3584 through 4094 are internally-reserved
VLAN IDs.

To specify a bridge priority for a specific VLAN, perform the following steps.

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

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

2. Under the <protocol> node, include the <spanning-tree> node from the

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

3. Under the <spanning-tree> node, include the <pvst>, or <rpvst> node element.

4. Under the <pvst>, or <rpvst> node, include the <vlan> node element.

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

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

b. In the <priority> element, specify the bridge priority.

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

<rpc message-id="2008" 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">

<pvst>

<vlan>

<id>100</id>

<priority>20480</priority>

</pvst>

</spanning-tree>

</protocol>

</config>

Advertising