Configuring native virtual fabric on interfaces – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 354

Advertising
background image

322

Network OS NETCONF Operations Guide

53-1003231-02

Virtual Fabric configuration with NETCONF overview

23

Configuring native Virtual Fabric on interfaces

To configure the native Virtual Fabric classifications requires two RPCs. The first RPC configures the
port as a Layer 2 interface; the second RPC configures the native VLAN 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:

a. In the <name> element, specify the port name in [rbridge-id/]slot/port format.

b. Include the <switchport>/<basic> elements to configure the port as a trunk VLAN using

the <vlan-mode> element.

c. Add the <native-vlan-classification> element and include the <vlan> element.

d. Specify the <native-vlan-id> value.

The following example configures 10-Gigabit Ethernet port 1/0/1 as a native VLAN.

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

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

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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<name>1/0/1</name>

<switchport>

<trunk>

<native-vlan-classification>

<native-vlan-id>300</native-vlan-id>

</native-vlan-classification>

</trunk>

</switchport>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

4. The following NETCONF xml request configures the native-vlan-xtagged on an Layer 2 interface

in trunk-no-default-native mode.

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

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

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

Advertising