Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 294

Advertising
background image

262

Network OS NETCONF Operations Guide

53-1003231-02

Obtaining the AMPP operational data

19

With no input parameters, the <get-port-profile-status> RPC returns information about all AMPP
profiles in all states. Alternatively, you can specify the <port-profile-name> element in the input to
restrict the returned information to one port-profile. You can also specify the <port-profile-status>
parameter to restrict the returned information to port-profiles in a specific state; applied, activated,
or associated.

One invocation of the <get-port-profile-status> RPC returns information for one MAC association for
a given port-profile. To return multiple MAC associations, you must issue the RPC multiple times,
and make use of the <last-received-port-profile-info> input parameter, which has two leaf
elements: <port-profile-name> and <port-profile-mac>.

On the first invocation of the <get-port-profile-status> RPC, set the
<last-received-port-profile>/<port-profile-mac> element to 00:00:00:00:00:00. If the <has-more>
element in the reply is true, use the MAC address returned in the <mac> element in the output as
the <last-received-port-profile-info>/<port-profile-mac> element in the input of the next call to the
<get-port-profile-status> RPC. All port-profile information has been returned when the <has-more>
output element returns false.

The following example returns status for the auto-VM_Network port-profile for all MAC associations
in the activated state. In the first call, the <last-received-port-profile>/<profile-mac> element is set
to 00:00:00:00:00. The output returns the first associated MAC address and the <has-more>
element is set to true.

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

<get-port-profile-status

xmlns="urn:brocade.com:mgmt:brocade-port-profile-ext">

<port-profile-name>auto-VM_Network</port-profile-name>

<port-profile-status>activated</port-profile-status>

<last-received-port-profile-info>

<profile-name>auto-VM_Network</port-profile-name>

<profile-mac>00:00:00:00:00:00</port-profile-mac>

</last-received-port-profile-info>

</get-port-profile-status>

</rpc>

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

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

<name>auto-VM_Network</name>

<ppid>9</ppid>

<is-active>true</is-active>

<mac-association>

<mac>00:50:56:b3:00:01</mac>

<applied-interface>

<interface-type>tengigabitethernet</interface-type>

<interface-name>9/0/53</interface-name>

</applied-interface>

</mac-association>

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

</port-profile>

</rpc-reply>

The following example takes as input the MAC association returned by the previous call. The output
returns the next MAC association for this port-profile.

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

<get-port-profile-status

xmlns="urn:brocade.com:mgmt:brocade-port-profile-ext">

<port-profile-name>auto-VM_Network</port-profile-name>

<port-profile-status>activated</port-profile-status>

Advertising