Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 390

Advertising
background image

358

Network OS NETCONF Operations Guide

53-1003231-02

Configuring all xSTP on DCB interface ports

24

c. Include the <spanning-tree> node element, which resides in the

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

4. Under the <spanning-tree> node element, include the <cost> leaf element and specify the

path cost for spanning tree calculations on the DCB interface.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<cost>10000</cost>

</spanning-tree>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Configuring the path cost per VLAN (PVST or Rapid PVST)

Use this procedure to configure the path cost for spanning tree calculations on a per VLAN basis.
The lower the path cost means there is a greater chance of the interface becoming the root port.
The range is 1 through 200000000. The default path cost is 2000 for a 10 Gbps interface. 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 configure the path cost for spanning tree calculations on the DCB interface for a specific VLAN,
perform the following steps.

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

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

2. Under the <interface> node, include the <gigabitethernet>, <tengigabitethernet>,

<fortygigabitethernet>, <hundredgigabitethernet>, or <port-channel> node element.

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

<hundredgigabitethernet>, or <port-channel> node element, include the following elements.

a. In the <name> element, specify the interface name in [rbridge-id/]slot/port format or

port-channel number.

b. In the <shutdown> element, include the delete operation in the element tag to enable the

port.

Advertising