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

Network OS NETCONF Operations Guide
287
53-1003231-02
VLAN configuration and management
21
<trunk>
<allowed>
<vlan>
<all/>
</vlan>
</allowed>
</trunk
The following fragment allows all VLANs except VLAN 11 to transmit and receive through
the DCB interface.
<trunk>
<allowed>
<vlan>
<except>11</except>
</vlan>
</allowed>
</trunk>
The following fragment allows no VLAN to transmit or receive through the DCB interface.
<trunk>
<allowed>
<vlan>
<none/>
</vlan>
</allowed>
</trunk>
The following complete example <edit-config> RPC enables trunk mode on port 22/0/1 and
allows only VLAN 30 to transmit and receive through the DCB interface.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1912" 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>
<switchport>
<mode>
<vlan-mode>trunk</vlan-mode>
</mode>
<trunk>
<allowed>
<vlan>
<add>30</add>
</vlan>
</allowed>
</trunk>
</switchport>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1912" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>