Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 315

Network OS NETCONF Operations Guide
283
53-1003231-02
VLAN configuration and management
21
a. In the <name> element, specify the interface port in [rbridge-id/]slot/port format.
b. In the <shutdown> element, include the delete operation in the opening tag to enable the
interface port.
c. Include the <switchport>/<basic> elements to configure the interface as a layer 2 switch
port.
The following example configures 10-Gigabit Ethernet port 22/0/1 as a Layer 2 switch port.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1907" 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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<name>1/0/1</name>
<switchport-basic><basic/></switchport-basic>
<switchport>
<mode>
<vlan-mode>trunk</vlan-mode>
</mode>
</switchport>
</tengigabitethernet>
</interface>
</config></edit-config>
</rpc>
<rpc-reply message-id="1907" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
4. To confirm the status of the DCB interface, issue the <get-interface-detail> custom RPC from
the urn:brocade.com:mgmt:brocade-interface-ext namespace and include the following input
parameters.
a. In the <interface-type> element located in the urn:brocade.com:mgmt:brocade-interface
namespace, specify the type of interface, for example “Tengigabitethernet”.
b. In the <interface-name> element located in the urn:brocade.com:mgmt:brocade-interface
namespace, specify the interface name in the [rbridge-id/]slot/port format.
The following example returns status details about port 22/0/1.
<rpc message-id="1908" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-interface-detail xmlns="urn:brocade.com:mgmt:brocade-interface-ext">
<interface-type xmlns="urn:brocade.com:mgmt:brocade-interface">
TenGigabitEthernet</interface-type>
<interface-name xmlns="urn:brocade.com:mgmt:brocade-interface">
22/0/1</interface-name>
</get-interface-detail>
</rpc>
rpc-reply message-id="1908" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface xmlns="urn:brocade.com:mgmt:brocade-interface-ext">
<interface-type xmlns="urn:brocade.com:mgmt:brocade-interface">
TenGigabitEthernet</interface-type>
<interface-name xmlns="urn:brocade.com:mgmt:brocade-interface">1/0/1
</interface-name>