Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VXLAN][Mellanox] add params to switch.json file in order to dynamically configure VXLAN src port range feature and remove static config #9

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_2700_48x50g_8x100g.xml
SAI_VXLAN_SRCPORT_RANGE_ENABLE=1
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800.xml
SAI_VXLAN_SRCPORT_RANGE_ENABLE=1
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_1x10g_28x50g_49x100g.xml
SAI_VXLAN_SRCPORT_RANGE_ENABLE=1
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_28x50g_52x100g.xml
SAI_VXLAN_SRCPORT_RANGE_ENABLE=1
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
4 changes: 4 additions & 0 deletions dockers/docker-orchagent/switch.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
[
{
"SWITCH_TABLE:switch": {
{% if ("Mellanox-SN3800-D28C50" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN3800-C64" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN3800-D28C49S1" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN2700-D48C8" in DEVICE_METADATA.localhost.hwsku) %}
"vxlan_src": 0xFF00,
"vxlan_mask": 8
{% endif %}
"ecmp_hash_seed": "{{ hash_seed_value }}",
"lag_hash_seed": "{{ hash_seed_value }}",
"fdb_aging_time": "600"
Expand Down