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

Network OS NETCONF Operations Guide
293
53-1003231-02
Configuring protocol-based VLAN classifier rules
21
</classifier>
</vlan>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1918" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Activating a VLAN classifier group with an interface port
To associate a VLAN classifier group with an interface port, 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, specify 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 opening element tag to
enable the port.
4. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>, or
<hundredgigabitethernet> element, include the <vlan> node element from the
urn:brocade.cam:mgmt:brocade-vlan namespace.
5. Under the <vlan> node, include the <classifier>/<activate>/<group> hierarchy of node
elements.
6. Under the <group> element, specify the following leaf elements to activate the interface and
associate it with a VLAN interface.
a. In the <group-id> element, set an integer value to identify the classifier group you want to
associate with the interface.
b. In the <vlan-name> element, specify the value “Rule”.
c. In the <vlan> element, set an integer value that identifies the VLAN.
Group 1 and VLAN 2 are used in the following example. The example assumes that VLAN 2 already
exists.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1919" 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/10</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
<vlan xmlns="urn:brocade.com:mgmt:brocade-vlan">