---
title: Hash
slug: aidc/hash
createdAt: 2025-12-29T10:28:56.091Z
---

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                           | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/hash                             | Y       | N        | Y         | N       | N          |
| /rest/v1/running/hash/hash-fields/&#x7B;pkt-type} | Y       | Y        | Y         | Y       | Y          |

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

### <font color="#1d50a2">Modify hash configuration.</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/hash
{"seed": 100}
```

### <font color="#1d50a2">remove seed configuration.</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/hash
{"seed": null}
```

### <font color="#1d50a2">Create some hash fields.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/hash/hash-fields
[{"pkt-type": "NON_IP", "ecmp-hash": ["SRC_MAC", "DST_MAC", "DST_IP"]}]
```

### <font color="#1d50a2">Replace some hash fields.</font>

```json
PUT rest/v1/running/hash/hash-fields/NON_IP
{"pkt-type": "NON_IP", "ecmp-hash": ["SRC_MAC", "DST_MAC"]}
```

### <font color="#1d50a2">Delete a hash field.</font>

```json
DELETE HTTPS://{switch IP}/rest/v1/running/hash/hash-fields/NON_IP 
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">Hash Configuration</font>

**Tree Diagrams**

```plaintext
  +--rw hash
     +--rw hash-fields* [pkt-type]
     |  +--rw pkt-type
     |  +--rw ecmp-hash*
     +--rw seed?
     +--rw enhancement? {cmn:platform-innovium}?
```

**Table of Properties**

| **Name**    | **Required** | **Type/Range**                                                                                                                                                                                   | **Description**                                                                                                                                                                     |
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hash        | M            |                                                                                                                                                                                                  | Path-only node, has no configurable value.                                                                                                                                          |
| hash-fields | M            |                                                                                                                                                                                                  | (sub-property of hash)<br />Path-only node, has no configurable value.                                                                                                              |
| pkt-type    | M            | "NON\_IP"<br />"IPV4"<br />"IPV6"                                                                                                                                                                | (sub-property of hash-fields)<br />                                                                                                                                                 |
| ecmp-hash   | O            | "IN\_PORT"<br />"DST\_MAC"<br />"SRC\_MAC"<br />"ETHERTYPE"<br />"VLAN\_ID"<br />"IP\_PROTOCOL"<br />"DST\_IP"<br />"SRC\_IP"<br />"L4\_DST\_PORT"<br />"L4\_SRC\_PORT"<br />"IPV6\_FLOW\_LABEL" | (sub-property of hash-fields)<br />Hash fields for hashing packets going through ECMP                                                                                               |
| seed        | O            | 0..4294967295                                                                                                                                                                                    | (sub-property of hash)<br />The value to set hash seed. Cannot be enabled at the same time as hash enhancement<br />Default value: 10                                               |
| enhancement | O            | "true"<br />"false"                                                                                                                                                                              | (sub-property of hash)<br />Hash enhancement function. Cannot be enabled at the same time as hash seed.<br />Only applicable when platform is innovium.<br />Default value: "false" |

