Disabling a fibre channel port, Setting fibre channel port speed – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 169

Advertising
background image

Network OS NETCONF Operations Guide

137

53-1003231-02

Setting Fibre Channel port speed

11

Disabling a Fibre Channel port

To disable a Fibre Channel port, add the <shutdown> element to the <fc-port> instance using the
<edit-config> RPC.

Perform the following steps.

1. Issue the <edit-config> RPC to configure the <interface> node in the

urn:brocade.com:mgmt:brocade-interface namespace.

2. Under the <interface> node, include the <fc-port> node element.

3. Under the <fc-port> node element, include the following leaf elements.

a. In the <name> element, identify the port you want to disable. Identify the port by

rbridge-ID/slot/port.

b. Specify the <shutdown/> element with no value.

The following example disables port 1 on routing bridge 8.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<fc-port>

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

<shutdown/>

</fc-port>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Setting Fibre Channel port speed

This procedure sets the port speed to 1, 2, 4, or 8 Gbps, or to autonegotiate (the default value).

To set the speed of a Fibre Channel port, perform the following steps.

1. Issue the <edit-config> RPC to configure the <interface> node in the

urn:brocade.comn:mgmt:brocade-interface namespace.

2. Under the <interface> node, include the <fc-port> node element.

3. Under the <fc-port> node element, include the following leaf elements.

a. In the <name> element, identify the port you want to configure in rbridge-ID/slot/port

format.

This element specifies the instance of the <fc-port> node.

Advertising