Enabling and disabling an interface port – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 310

278
Network OS NETCONF Operations Guide
53-1003231-02
VLAN configuration and management
21
Enabling and disabling an interface port
NOTE
DCB interfaces are disabled by default in standalone mode, but enabled by default in Brocade VCS
Fabric mode.
NOTE
DCB interfaces do not support auto-negotiation of Ethernet link speeds. The DCB interfaces support
100-Gigabit Ethernet, 40-Gigabit Ethernet, 10-Gigabit Ethernet, and Gigabit Ethernet.
To enable an interface port, 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, specify the interface type element (<gigabitethernet>,
<tengigabitethernet>, <fortygigabitethernet>, or <hundredgigabitethernet>).
3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>, or
<hundredgigabitethernet> element, specify the following elements.
a. In the <name> element, specify the port name in [rbridge-id/]slot/port format.
b. In the <shutdown> element, include the delete operation in the element opening tag.
The following example enables port 22/0/1.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1901" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/1</name>
<shutdown xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
operation="delete"/>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1901" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
To disable the interface, include the <shutdown> element without the delete operation.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1902" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>