cb3b9416a6
- 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 <ayurkiv@nvidia.com>
12 lines
223 B
Django/Jinja
12 lines
223 B
Django/Jinja
[
|
|
{
|
|
"SWITCH_TABLE:switch": {
|
|
{% if DEVICE_METADATA.localhost.vxlan_port_range == 'enable' %}
|
|
"vxlan_sport": "0xFF00",
|
|
"vxlan_mask": "8"
|
|
{% endif %}
|
|
},
|
|
"OP": "SET"
|
|
}
|
|
]
|