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

Page 320

Advertising
background image

288

Network OS NETCONF Operations Guide

53-1003231-02

VLAN configuration and management

21

</rpc-reply>

Disabling a VLAN on a trunk interface

To disable a VLAN on a trunk interface, 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> element, include the following elements.

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

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

enable the interface port.

c. Include the <switchport>/<mode> hierarchy of node elements.

d. Under the <mode> node, specify the <vlan-mode> element, and specify “trunk” to place

the interface into trunk mode.

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

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

<switchport>

<mode>

<vlan-mode>trunk</vlan-mode>

</mode>

</switchport>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

4. Issue an additional RPC to remove the VLAN ranges from the trunk port.

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

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

<edit-config>

<target>

<running/>

</target>

Advertising