Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 62

Advertising
background image

30

Network OS NETCONF Operations Guide

53-1003231-02

Interfaces, slots, and modules

3

The example RPCs shown in the following procedure replace the card in slot 1 with a LC48x10G
module. These examples assume VCS Fabric mode. For standalone mode, replace the
<rbridgeid>/<global-lc-holder> node elements with the <standalone-lc-holder> node element.

1. Power off the interface module by issuing the <linecardservice>/<power-off> custom action

located in the urn:brocade.com:mgmt:brocade-linecard-management namespace.

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

<nca:action xmlns:nca="http://tail-f.com/ns/netconf/actions/1.0">

<nca:data>

<linecardservice

xmlns="urn:brocade.com:mgmt:brocade-linecard-management">

<power-off>

<linecard>1</linecard>

</power-off>

</linecardservice>

</nca:data>

</nca:action>

</rpc>

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

<ok/>

</rpc-reply>

2. Clear the slot configuration.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<rbridge-id>5</rbridge-id>

<global-lc-holder

xmlns="urn:brocade.com:mgmt:brocade-linecard-management">

<linecard>

<linecards

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete">

<linecardName>1</linecardName>

</linecards>

</linecard>

</global-lc-holder>

</rbridge-id>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

3. Remove the interface module.

4. Specify the new line card type.

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

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

<edit-config>

<target>

Advertising