Obtaining vlan information, Obtaining port interface information for one port – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 326

Advertising
background image

294

Network OS NETCONF Operations Guide

53-1003231-02

Configuring protocol-based VLAN classifier rules

21

<classifier>

<activate>

<group>

<groupid>1</groupid>

<vlan-name>vlan</vlan-name>

<vlan>2</vlan>

</group>

</activate>

</classifier>

</vlan>

<tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Obtaining VLAN information

The following custom RPCs return information about VLANs:

<get-interface-detail> returns information about the associated port interface.

<get-vlan-brief> returns information about a specific VLAN.

Obtaining port interface information for one port

To return information about an associated port interface, issue the <get-interface-detail> custom
RPC from the urn:brocade.com:mgmt:brocade-interface-ext namespace and specify the following
input elements:

In the <interface-type> element in the urn:brocade.com:mgmt:brocade-interface namespace,
specify the interface type—For example “tengigabitethernet”.

In the <interface-name> element from the urn:brocade.com:mgmt:brocade-interface
namespace, specify the port name in the [rbridge-id/]slot/port format.

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

<get-interface-detail xmlns="urn:brocade.com:mgmt:brocade-interface-ext">

<interface-type xmlns="urn:brocade.com:mgmt:brocade-interface">

tengigabitethernet</interface-type>

<interface-name xmlns="urn:brocade.com:mgmt:brocade-interface">

1/0/1</interface-name>

</get-interface-detail>

</rpc>

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

<interface xmlns="urn:brocade.com:mgmt:brocade-interface-ext">

<interface-type xmlns="urn:brocade.com:mgmt:brocade-interface">

TenGigabitEthernet</interface-type>

<interface-name xmlns="urn:brocade.com:mgmt:brocade-interface">1/0/1

</interface-name>

<ifindex xmlns="urn:brocade.com:mgmt:brocade-interface">67174401</ifindex>

<mtu xmlns="urn:brocade.com:mgmt:brocade-interface">2500</mtu>

<ip-mtu xmlns="urn:brocade.com:mgmt:brocade-interface">2500</ip-mtu>

<if-name xmlns="urn:brocade.com:mgmt:brocade-interface"></if-name>

Advertising