Obtaining port information for a sequence of ports – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 327

Advertising
background image

Network OS NETCONF Operations Guide

295

53-1003231-02

Configuring protocol-based VLAN classifier rules

21

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

<line-protocol-state xmlns="urn:brocade.com:mgmt:brocade-interface">up

</line-protocol-state>

(output truncated)

Obtaining port information for a sequence of ports

To retrieve information for a sequence ports, issue the <get-interface-detail> RPC multiple times
and use the <last-received-interface> node element on input.

Before issuing the <get-interface-detail> RPC, check the output of the previous invocation to
determine whether the <has-more> boolean element is set to “true”. If so, information is available
for additional interfaces; proceed as follows:

1. Issue the <get-interface-detail> RPC in the urn:brocade.com:mgmt:brocade-interface-ext

namespace.

2. Under the <get-interface-detail> node, include the <last-received-interface> node element.

3. Under the <last-received-interface> node, include the following leaf elements.

a. In the <interface-type> element in the urn:brocade.com:mgmt:brocade-interface

namespace, specify the interface type—For example “tengigabitethernet”.

b. In the <interface-name> element from theurn:brocade.com:mgmt:brocade-interface

namespace, specify the port name in the [rbridge-id/]slot/port format of the port for which
information was returned in the last invocation of the <get-interface-detail> RPC.

The <get-interface-detail> RPC returns information about the next port.

4. Check the <has-more> element in the output to determine whether information is available for

additional port interfaces.

5. Repeat the procedure until the <has-more> element returns “false”.

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

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

<line-protocol-state xmlns="urn:brocade.com:mgmt:brocade-interface">up

</line-protocol-state>

(output truncated)

</interface>

<has-more>true</has-more>

</rpc-reply>

Advertising