Deleting a vlan classifier rule – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 324

292
Network OS NETCONF Operations Guide
53-1003231-02
Configuring protocol-based VLAN classifier rules
21
<target>
<running/>
</target>
<config>
<vlan xmlns="urn:brocade.com:mgmt:brocade-vlan">
<classifer>
<group>
<groupid>1</groupid>
<oper>add</oper>
<rule-name>Rule</rule-name>
<ruleid>1</ruleid>
</group>
</classifier>
</vlan>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1917" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Deleting a VLAN classifier rule
VLAN classifier groups (1 through 16) can contain any number of VLAN classifier rules.
To remove a VLAN classifier rule from a VLAN classifier group, perform the following steps.
1. Issue an <edit-config> RPC to configure the <vlan> node in the
urn:brocade.com:mgmt:brocade-vlan namespace.
2. Under the <vlan> node, specify the <classifier>/<group> hierarchy of node elements.
3. Under the <group> element, specify the following leaf elements.
a. In the <group-id> element, specify an integer value to identify the classifier group from
which you want to remove a rule.
b. In the <oper> element, specify “delete” to delete the specified rule.
c. In the <rule-name> element, specify the value “Rule”.
d. In the <ruleid> element, set an integer value that identifies the rule you want to delete.
The following example deletes rule 1 from classifier group 1.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1918" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<vlan xmlns="urn:brocade.com:mgmt:brocade-vlan">
<classifier>
<group>
<groupid>1</groupid>
<oper>delete</oper>
<rule-name>Rule</rule-name>
<ruleid>1</ruleid>
</group>