Creating a vlan classifier group and adding rules – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 323

Advertising
background image

Network OS NETCONF Operations Guide

291

53-1003231-02

Configuring protocol-based VLAN classifier rules

21

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>/<rule> hierarchy of node elements.

3. Under the <rule> element, specify the <ruleid> element, and give it an integer representing

the rule ID.

4. Under the <rule> element, specify the <mac> node element.

5. Under the <mac> node element, include an <address> element and assign it a MAC address.

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

<rpc message-id="1916" 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>

<rule>

<ruleid>5</ruleid>

<mac>

<address>0008.744c.7fid</address>

</mac>

</rule>

</classifier>

</vlan>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Creating a VLAN classifier group and adding rules

VLAN classifier groups (1 through 16) can contain any number of VLAN classifier rules.

To configure a VLAN classifier group and add a VLAN classifier rule, 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> element, specify the <classifier>/<group> hierarchy of node elements.

3. Under the <group> element, specify the following leaf elements.

a. In the <group-id> element, set an integer value to identify the classifier group.

b. In the <oper> element, specify the value “add” to add the specified rule.

c. In the <rule-name> element, specify the value “Rule”.

d. In the <ruleid> element, set to an integer value that identifies the rule you want to add.

The following example creates classifier group 1 and adds rule 1 to it.

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

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

<edit-config>

Advertising