---
title: hash
slug: enterprise-v6p1/8vEB-hash
createdAt: 2025-12-17T08:18:20.298Z
---

AsterNOS YANG Model for HASH.

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-hash
  +--rw hash
     +--rw global
     |  +--rw lag
     |  |  +--rw algorithm?     identityref
     |  |  +--rw seed?          uint32
     |  |  +--rw hash-fields*   identityref
     |  +--rw ecmp
     |     +--rw algorithm?     identityref
     |     +--rw seed?          uint32
     |     +--rw hash-fields*   identityref
     +--ro capabilities
        +--ro ecmp
        |  +--ro hash-algorithms*   identityref
        |  +--ro hash-fields*       identityref
        +--ro lag
           +--ro hash-algorithms*   identityref
           +--ro hash-fields*       identityref
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                                | **Access** |
| --------------------------------------- | ---------- |
| /hash                                   | Read-Write |
| /hash/global                            | Read-Write |
| /hash/global/lag                        | Read-Write |
| /hash/global/lag/algorithm              | Read-Write |
| /hash/global/lag/seed                   | Read-Write |
| /hash/global/lag/hash-fields            | Read-Write |
| /hash/global/ecmp                       | Read-Write |
| /hash/global/ecmp/algorithm             | Read-Write |
| /hash/global/ecmp/seed                  | Read-Write |
| /hash/global/ecmp/hash-fields           | Read-Write |
| /hash/capabilities                      | Read-Only  |
| /hash/capabilities/ecmp                 | Read-Only  |
| /hash/capabilities/ecmp/hash-algorithms | Read-Only  |
| /hash/capabilities/ecmp/hash-fields     | Read-Only  |
| /hash/capabilities/lag                  | Read-Only  |
| /hash/capabilities/lag/hash-algorithms  | Read-Only  |
| /hash/capabilities/lag/hash-fields      | Read-Only  |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/hash</font>

**Path**

/hash

**Node Type**

container

**Description**

Hash configuration

**Access**

Read-Write

### <font color="#1d50a2">/hash/global</font>

**Path**

/hash/global

**Node Type**

container

**Description**

Global hash configuration

**Access**

Read-Write

### <font color="#1d50a2">/hash/global/lag</font>

**Path**

/hash/global/lag

**Node Type**

container

**Description**

LAG hash configuration

**Access**

Read-Write

### <font color="#1d50a2">/hash/global/lag/algorithm</font>

**Path**

/hash/global/lag/algorithm

**Node Type**

leaf

**Description**

Hash algorithm for LAG

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- XOR
- CRC\_32LO
- CRC
- CRC\_32HI

### <font color="#1d50a2">/hash/global/lag/seed</font>

**Path**

/hash/global/lag/seed

**Node Type**

leaf

**Description**

Seed for LAG hash

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Multiple constraints:

- Valid range:
- When condition: ../algorithm = 'CRC'

### <font color="#1d50a2">/hash/global/lag/hash-fields</font>

**Path**

/hash/global/lag/hash-fields

**Node Type**

leaf-list

**Description**

Hash fields for LAG

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- IN\_PORT
- SRC\_MAC
- DST\_MAC
- L4\_SRC\_PORT
- DST\_IP
- L4\_DST\_PORT
- SRC\_IP
- VLAN\_ID

### <font color="#1d50a2">/hash/global/ecmp</font>

**Path**

/hash/global/ecmp

**Node Type**

container

**Description**

ECMP hash configuration

**Access**

Read-Write

### <font color="#1d50a2">/hash/global/ecmp/algorithm</font>

**Path**

/hash/global/ecmp/algorithm

**Node Type**

leaf

**Description**

Hash algorithm for LAG

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- XOR
- CRC\_32LO
- CRC
- CRC\_32HI

### <font color="#1d50a2">/hash/global/ecmp/seed</font>

**Path**

/hash/global/ecmp/seed

**Node Type**

leaf

**Description**

Seed for LAG hash

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Multiple constraints:

- Valid range:
- When condition: ../algorithm = 'CRC'

### <font color="#1d50a2">/hash/global/ecmp/hash-fields</font>

**Path**

/hash/global/ecmp/hash-fields

**Node Type**

leaf-list

**Description**

Hash fields for LAG

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- IN\_PORT
- SRC\_MAC
- DST\_MAC
- L4\_SRC\_PORT
- DST\_IP
- L4\_DST\_PORT
- SRC\_IP
- VLAN\_ID

### <font color="#1d50a2">/hash/capabilities</font>

**Path**

/hash/capabilities

**Node Type**

container

**Description**

Hash capabilities

**Access**

Read-Only

### <font color="#1d50a2">/hash/capabilities/ecmp</font>

**Path**

/hash/capabilities/ecmp

**Node Type**

container

**Description**

ECMP capabilities

**Access**

Read-Only

### <font color="#1d50a2">/hash/capabilities/ecmp/hash-algorithms</font>

**Path**

/hash/capabilities/ecmp/hash-algorithms

**Node Type**

leaf-list

**Description**

Supported hash algorithms

**Access**

Read-Only

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- XOR
- CRC\_32LO
- CRC
- CRC\_32HI

### <font color="#1d50a2">/hash/capabilities/ecmp/hash-fields</font>

**Path**

/hash/capabilities/ecmp/hash-fields

**Node Type**

leaf-list

**Description**

Supported hash fields

**Access**

Read-Only

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- IN\_PORT
- SRC\_MAC
- DST\_MAC
- L4\_SRC\_PORT
- DST\_IP
- L4\_DST\_PORT
- SRC\_IP
- VLAN\_ID

### <font color="#1d50a2">/hash/capabilities/lag</font>

**Path**

/hash/capabilities/lag

**Node Type**

container

**Description**

LAG capabilities

**Access**

Read-Only

### <font color="#1d50a2">/hash/capabilities/lag/hash-algorithms</font>

**Path**

/hash/capabilities/lag/hash-algorithms

**Node Type**

leaf-list

**Description**

Supported hash algorithms

**Access**

Read-Only

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- XOR
- CRC\_32LO
- CRC
- CRC\_32HI

### <font color="#1d50a2">/hash/capabilities/lag/hash-fields</font>

**Path**

/hash/capabilities/lag/hash-fields

**Node Type**

leaf-list

**Description**

Supported hash fields

**Access**

Read-Only

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- IN\_PORT
- SRC\_MAC
- DST\_MAC
- L4\_SRC\_PORT
- DST\_IP
- L4\_DST\_PORT
- SRC\_IP
- VLAN\_ID
