Hash
此内容尚不支持你的语言。
| URL | GET | POST | PATCH | PUT | DELETE |
|---|---|---|---|---|---|
| /rest/v1/running/hash | Y | N | Y | N | N |
| /rest/v1/running/hash/hash-fields/{pkt-type} | Y | Y | Y | Y | Y |
Examples
Section titled “Examples”Modify hash configuration.
Section titled “Modify hash configuration.”PATCH HTTPS://{switch IP}/rest/v1/running/hash{"seed": 100}remove seed configuration.
Section titled “remove seed configuration.”PATCH HTTPS://{switch IP}/rest/v1/running/hash{"seed": null}Create some hash fields.
Section titled “Create some hash fields.”POST HTTPS://{switch IP}/rest/v1/running/hash/hash-fields[{"pkt-type": "NON_IP", "ecmp-hash": ["SRC_MAC", "DST_MAC", "DST_IP"]}]Replace some hash fields.
Section titled “Replace some hash fields.”PUT rest/v1/running/hash/hash-fields/NON_IP{"pkt-type": "NON_IP", "ecmp-hash": ["SRC_MAC", "DST_MAC"]}Delete a hash field.
Section titled “Delete a hash field.”DELETE HTTPS://{switch IP}/rest/v1/running/hash/hash-fields/NON_IPProperties Descriptions
Section titled “Properties Descriptions”Hash Configuration
Section titled “Hash Configuration”Tree Diagrams
+--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) | |
| Path-only node, has no configurable value. | |||
| pkt-type | M | ”NON_IP" | |
| "IPV4" | |||
| "IPV6” | (sub-property of hash-fields) |
|| ecmp-hash | O | “IN_PORT” “DST_MAC” “SRC_MAC” “ETHERTYPE” “VLAN_ID” “IP_PROTOCOL” “DST_IP” “SRC_IP” “L4_DST_PORT” “L4_SRC_PORT” “IPV6_FLOW_LABEL” | (sub-property of hash-fields) Hash fields for hashing packets going through ECMP | | seed | O | 0..4294967295 | (sub-property of hash) The value to set hash seed. Cannot be enabled at the same time as hash enhancement Default value: 10 | | enhancement | O | “true” “false” | (sub-property of hash) Hash enhancement function. Cannot be enabled at the same time as hash seed. Only applicable when platform is innovium. Default value: “false” |