Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 127

Advertising
background image

Network OS NETCONF Operations Guide

95

53-1003231-02

Fabric interface configuration management

8

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

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

2. Under the <rbridge> node, include the <rbridge-id> leaf element to specify the routing bridge.

3. Under the <rbridge> node, include the <fabric> node in the

urn:brocade.com:mgmt:brocade-fabric-service namespace.

4. Under the <fabric> node, include the <ecmp> node element.

5. Under the <ecmp> node, include the following leaf elements.

a. In the <ecmp-load-balance> element, specify the stream you want to favor.

b. Optional: In the <ecmp-load-balance-hash-swap> element, specify a value to swap the

input fields before feeding them to the hash function.

The following example uses the Destination MAC address and VID-based load balancing flavor and
swaps every fourth bit pair of the input fields before feeding them to the hash function.

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<rbridge-id>2</rbridge-id>

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

<ecmp>

<ecmp-load-balance>dst-mac-vid</ecmp-load-balance>

<ecmp-load-balance-hash-swap>4</ecmp-load-balance-hash-swap>

</ecmp>

</fabric>

</rbridge>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

To verify the hash field selection configuration and hash swap configuration, issue the <get-config>
RPC with a subtree filter to return the <ecmp> configuration node for the desired routing bridge.
The following example returns the <ecmp> configuration for routing bridge 2.

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

<get-config>

<source>

<running/>

</source>

<filter type="subtree">

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

<rbridge-id>2</rbridge-id>

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

<ecmp/>

</fabric>

</rbridge>

</filter>

</get-config>

Advertising