lag/hash

Configures the various LAG hash parameters.

Resource URIs

URI Description

<base_URI>/config/running/lag

Configures the Hash-based LAG parameters.

GET URIs Description

<base_URI>/config/running/lag

Retrieves the Hash-based LAG parameters.

POST URIs Payload Description

<base_URI>/config/running/lag

<bos><start/></bos>
<bos><skip/></bos>

Specifies to pick up only the BOS label for hashing. The parameters indicate whether to include the BOS label when hashing.

<base_URI>/config/running/lag

<hdr-count>{count}</hdr-count>

Specifies the number of headers to be considered for LAG hashing.

<base_URI>/config/running/lag

<hdr-start><fwd/></hdr-start>
<hdr-start><term/></hdr-start>

Specifies where to start picking headers for key generation. The parameters indicate whether to start from the inner header or the outer header.

<base_URI>/config/running/lag

<normalize/>

Specifies using the same hash in both directions.

<base_URI>/config/running/lag

<pwctlword/>

Specifies including the PW control word in hashing.

<base_URI>/config/running/lag

<rotate>{rotate-number}<rotate/>

Specifies the hashing randomness value.

<base_URI>/config/running/lag

<speculate-mpls><enable/></speculate-mpls>

Enables Speculative MPLS.

<base_URI>/config/running/lag

<speculate-mpls><inner-eth/></speculate-mpls>

Enable inner ETH hash for L2VPN.

<base_URI>/config/running/lag

<speculate-mpls><inner-ip-raw/></speculate-mpls>

Enable inner IPv4 header hash for L2VPN raw mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ip-tag/></speculate-mpls>

Enable inner IPv4 header hash for L2VPN tag mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ipv6-raw/></speculate-mpls>

Enable inner IPv6 header hash for L2VPN raw mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ipv6-tag/></speculate-mpls>

Enable inner IPv6 header hash for L2VPN tag mode.

<base_URI>/config/running/lag

<srcport/>

Specifies to include source port in hashing configuration.

PATCH URIs Payload Description

<base_URI>/config/running/lag

<bos><start/></bos>
<bos><skip/></bos>

Specifies to pick up only the BOS label for hashing. The parameters indicate whether to include the BOS label when hashing.

<base_URI>/config/running/lag

<hdr-count>{count}</hdr-count>

Specifies the number of headers to be considered for LAG hashing.

<base_URI>/config/running/lag

<hdr-start><fwd/></hdr-start>
<hdr-start><term/></hdr-start>

Specifies where to start picking headers for key generation. The parameters indicate whether to start from the inner header or the outer header.

<base_URI>/config/running/lag

<normalize/>

Specifies using the same hash in both directions.

<base_URI>/config/running/lag

<pwctlword/>

Specifies including the PW control word in hashing.

<base_URI>/config/running/lag

<rotate>{rotate-number}<rotate/>

Specifies the hashing randomness value.

<base_URI>/config/running/lag

<speculate-mpls><enable/></speculate-mpls>

Enables Speculative MPLS.

<base_URI>/config/running/lag

<speculate-mpls><inner-eth/></speculate-mpls>

Enable inner ETH hash for L2VPN.

<base_URI>/config/running/lag

<speculate-mpls><inner-ip-raw/></speculate-mpls>

Enable inner IPv4 header hash for L2VPN raw mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ip-tag/></speculate-mpls>

Enable inner IPv4 header hash for L2VPN tag mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ipv6-raw/></speculate-mpls>

Enable inner IPv6 header hash for L2VPN raw mode.

<base_URI>/config/running/lag

<speculate-mpls><inner-ipv6-tag/></speculate-mpls>

Enable inner IPv6 header hash for L2VPN tag mode.

<base_URI>/config/running/lag

<srcport/>

Specifies to include source port in hashing configuration.

Delete URIs
<base-uri>/config/running/lag/bos
<base-uri>/config/running/lag/hdr-count
<base-uri>/config/running/lag/hdr-start
<base-uri>/config/running/lag/normalize
<base-uri>/config/running/lag/rotate
<base-uri>/config/running/lag/pwctlword
<base-uri>/config/running/lag/speculate-mpls
<base-uri>/config/running/lag/srcport

Parameters

bos
Ignore the entire MPLS label stack and use only the BOS label for hashing.
skip
Hash from the label following the BOS label.
start
(Default) Start the hash from the BOS label.
hdr-count count
Configures the number of headers to be considered for LAG hashing. Values range from 1 through 3. The default is 3.
hdr-start
Specifies where to start picking headers for the key generation.
fwd
(Default) Start from the inner header, which is used for forwarding the packet.
term
Start from the outer header, which is the header below the forwarding header and is the last terminated header.
normalize
Configures using the same hash in both directions. The default is disabled.
pwctrlword
Include the PW control word in hashing. The default is disabled.
rotate rotate-number
Configures hashing randomness. Values range from 0 through 15. The default is 3.
speculate-mpls
Enable MPLS speculate or Ethernet/IP.
enable
Enable Speculative MPLS.
inner-eth
Enable inner Ethernet header hash for L2VPN.
inner-ip-raw
Enable inner IPv4 header hash for L2VPN raw mode.
inner-ip-tag
Enable inner IPv4 header hash for L2VPN tag mode
inner-ipv6-raw
Enable inner IPv6 header hash for L2VPN raw mode
inner-ipv6-tag
Enable inner IPv6 header hash for L2VPN tag mode
srcport
Includes the source port in the hashing configuration. The default is not to include it.

Usage Guidelines

GET, PUT, PATCH, and DELETE operations are supported.

Examples

URI

The following example uses the GET option to retrieve Lag Hash information on an Extreme 8820.

http://host:80/rest/config/running/lag/hash

None
<hash xmlns="urn:brocade.com:mgmt:brocade-rbridge-lag" 
	xmlns:y="http://brocade.com/ns/rest" y:self="/rest/config/running/lag/hash">
  <rotate>12</rotate>
  <normalize>true</normalize>
</hash>

URI

The following example uses the POST option to configure hashing randomness.

http://host:80/rest/config/running/lag/hash

 <hash>
	<rotate>5</rotate>
</hash> 
None