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

274
Network OS NETCONF Operations Guide
53-1003231-02
Configuring FCoE interfaces
20
To assign an FCoE map to a LAG, perform the following steps.
1. Issue the <edit-config> RPC to configure the <interface>/<port-channel> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
2. Under the <port-channel> node, in the <name> leaf element, specify the port-channel number
of the LAG to which you want to apply the FCoE map.
3. Under the <port-channel> node, specify the <fcoeport> node in the
urn:brocade.com:mgmt:brocade-fcoe namespace.
4. Under the <fcoeport> node, specify the <fcoeport-map> leaf element, and set its value to
“default”.
The following example applies the default FCoE map to port channel 5.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<port-channel>
<name>5</name>
<fcoeport xmlns="urn:brocade.com:mgmt:brocade-fcoe">
<fcoeport-map>default</fcoeport-map>
</fcoeport>
</port-channel>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1802" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
5. Confirm the changes to the interface using the <get-config> RPC with a subtree filter to return
only the <fcoeport> node information for a specific port channel.
The output returns the FCoE mapping association for the interface.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1803" 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">
<port-channel>
<name>5</name>
<fcoeport xmlns="urn:brocade.com:mgmt:brocade-fcoe"/>
</port-channel>
</interface>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="1803" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">