Skip to content

Commit

Permalink
Revert "[swss]: Add default ECMP/LAG hash offset values for T0 and T1 (
Browse files Browse the repository at this point in the history
…#18912…" (#19428)

This reverts commit 375ca8b.
  • Loading branch information
yxieca committed Jul 1, 2024
1 parent b42fef7 commit 3bab55c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions dockers/docker-orchagent/switch.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
{# set default hash seed to 0 #}
{% set hash_seed = 0 %}
{% set hash_seed_offset = 0 %}
{% set ecmp_hash_offset_value = 0 %}
{% set lag_hash_offset_value = 0 %}
{% if DEVICE_METADATA.localhost.type %}
{% if "ToRRouter" in DEVICE_METADATA.localhost.type or DEVICE_METADATA.localhost.type in ["EPMS", "MgmtTsToR"] %}
{% set hash_seed = 0 %}
{% elif "LeafRouter" in DEVICE_METADATA.localhost.type %}
{% set hash_seed = 10 %}
{% set ecmp_hash_offset_value = 10 %}
{% set lag_hash_offset_value = 10 %}
{% elif "SpineRouter" in DEVICE_METADATA.localhost.type %}
{% set hash_seed = 25 %}
{% endif %}
Expand All @@ -25,8 +21,6 @@
"ecmp_hash_seed": "{{ hash_seed_value }}",
"lag_hash_seed": "{{ hash_seed_value }}",
"fdb_aging_time": "600",
"ecmp_hash_offset": "{{ ecmp_hash_offset_value }}",
"lag_hash_offset": "{{ lag_hash_offset_value }}",
{% if DEVICE_METADATA.localhost.type and "LeafRouter" in DEVICE_METADATA.localhost.type %}
"ordered_ecmp": "true"
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"ecmp_hash_seed": "11",
"lag_hash_seed": "11",
"fdb_aging_time": "600",
"ecmp_hash_offset": "10",
"lag_hash_offset": "10",
"ordered_ecmp": "true"
},
"OP": "SET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"ecmp_hash_seed": "13",
"lag_hash_seed": "13",
"fdb_aging_time": "600",
"ecmp_hash_offset": "10",
"lag_hash_offset": "10",
"ordered_ecmp": "true"
},
"OP": "SET"
Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/sample_output/t0-switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"ecmp_hash_seed": "0",
"lag_hash_seed": "0",
"fdb_aging_time": "600",
"ecmp_hash_offset": "0",
"lag_hash_offset": "0",
"ordered_ecmp": "false"
},
"OP": "SET"
Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/sample_output/t1-switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"ecmp_hash_seed": "10",
"lag_hash_seed": "10",
"fdb_aging_time": "600",
"ecmp_hash_offset": "10",
"lag_hash_offset": "10",
"ordered_ecmp": "true"
},
"OP": "SET"
Expand Down

0 comments on commit 3bab55c

Please sign in to comment.