Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 45

Advertising
background image

Network OS NETCONF Operations Guide

13

53-1003231-02

Retrieving configuration data

2

<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>

If all you want to know is the setting of one specific Fibre Channel port attribute, such as the
configured speed, use a filter such as the following. In this case, <fc-speed-cfg> suppresses the
inclusion of all its sibling nodes. It is termed a selection node.

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

<rpc message-id="203" 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-speed-cfg/>

</fc-port>

</interface>

</filter>

</get-config>

</rpc>

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="204" 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="204" 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>

<ifindex>1</ifindex>

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

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

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

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

Advertising