-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mellanox][VXLAN] add params to vxlan.json file in order to configure…
… VXLAN src port range feature (#9658) - Why I did it Remove obsolete parameter that enables static VXLAN src port range provide functionality no generate json config file according to appropriate parameter in config_db Done for SN3800: • Mellanox-SN3800-D28C50 • Mellanox-SN3800-C64 • Mellanox-SN3800-D28C49S1 (New 10G SKU) SN2700: • Mellanox-SN2700-D48C8 - How I did it Remove SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 from appropriate sai.profile files Created vxlan.json file and added few params that depends on DEVICE_METADATA.localhost.vxlan_port_range - How to verify it File /etc/swss/config.d/vxlan.json should be generated inside swss docker when it restart [ { "SWITCH_TABLE:switch": { "vxlan_src": "0xFF00", "vxlan_mask": "8" }, "OP": "SET" } ] Signed-off-by: Andriy Yurkiv <[email protected]>
- Loading branch information
1 parent
825fc9e
commit 84a986b
Showing
8 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"SWITCH_TABLE:switch": { | ||
{% if DEVICE_METADATA.localhost.vxlan_port_range == 'enable' %} | ||
"vxlan_sport": "0xFF00", | ||
"vxlan_mask": "8" | ||
{% endif %} | ||
}, | ||
"OP": "SET" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters