Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 167

Advertising
background image

Network OS NETCONF Operations Guide

135

53-1003231-02

Retrieving the Fibre Channel port configuration

11

</interface>

</filter>

To retrieve Fibre Channel configuration data for a specific Fibre Channel interface, use the following
filter.

<filter type="subtree">

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

<fc-port>

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

</fc-port>

</interface>

</filter>

To retrieve the settings of specific attributes for a given Fibre Channel port, use a filter such as the
following. In this case, just the configured port speed is retrieved.

<filter type="subtree">

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

<fc-port>

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

<fc-speed-cfg/>

</fc-port>

</interface>

</filter>

The following example retrieves the configuration for the Fibre Channel port 1 on routing bridge 8.

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

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

<get-config>

<source>

<running/>

</source>

<filter type="subtree">

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

<fc-port>

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

</fc-port>

</interface>

</filter>

</get-config>

</rpc>

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

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

<fc-port>

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

<fc-speed-cfg>8gbps</fc-speed-cfg>

<long-distance>ld</long-distance>

<vc-link-init>arb</vc-link-init>

<desire-distance>0</desire-distance>

<trunk-enable></trunk-enable>

<config-mode>4</config-mode>

</fc-port>

</interface>

</rpc-reply>

Advertising