Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 352

Advertising
background image

320

Network OS NETCONF Operations Guide

53-1003231-02

Virtual Fabric configuration with NETCONF overview

23

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

b. Include the <switchport>/<basic> elements to configure the port as a trunk Virtual Fabric

using the <vlan-mode> element.

c. Add the <trunk-vlan-classification> element and include the <vlan> element.

d. Specify the <trunk-vlan-id> value and the <trunk-ctag-range> value.

The following example configures 10-Gigabit Ethernet port 1/0/1 as a trunk VLAN with a C-TAG
range.

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

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

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<name>1/0/1</name>

<switchport-basic> <basic/></switchport-basic>

<switchport>

<mode>

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

</mode>

<trunk>

<trunk-vlan-classification>

<allowed>

<vlan>

<add>

<trunk-vlan-id>6011</trunk-vlan-id>

<trunk-ctag-range>51-68</trunk-ctag-range>

</add>

</vlan>

</allowed>

</trunk-vlan-classification>

</trunk>

</switchport>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Configuring a trunk Virtual Fabric with a single C-TAG.

When configuring a trunk Virtual Fabric with a single C-TAG on the interface, it is important to
remember that the C-TAG is applicable only for a trunk VLAN.

Configuring the trunk Virtual Fabric requires two RPCs. The first RPC configures the port as a Layer
2 interface; the second RPC configures the Virtual Fabric with a trunk classification and the C-TAG.

Advertising