Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 351

Network OS NETCONF Operations Guide
319
53-1003231-02
Virtual Fabric configuration with NETCONF overview
23
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1" 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>1/0/1</name>
<switchport>
<trunk>
<trunk-vlan-classification>
<allowed>
<vlan>
<add>
<trunk-vlan-id>5000</trunk-vlan-id>
<trunk-ctag-range>10</trunk-ctag-range>
</add>
</vlan>
</allowed>
</trunk-vlan-classification>
</trunk>
<private-vlan>
<mapping>
<promis-pri-pvlan>5000</promis-pri-pvlan>
<oper>add</oper>
<promis-sec-pvlan-range>6000,7000</promis-sec-pvlan-range>
</mapping>
</private-vlan>
</switchport>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Configuring a trunk Virtual Fabric with a range of C-TAGs
When configuring a trunk Virtual Fabric with a range of C-TAGs on the interface, it is important to
remember that the range of C-TAGs is applicable only for a trunk Virtual Fabric.
To configure 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.
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: