34f3caf2e2
* Set the default mac ageing time to 300 seconds The current mac ageing was disabled, this could lead the mac address table to increase over time and lead to resource and performance issues. Signed-off-by: Zhenggen Xu <zxu@linkedin.com> * Update the default HW ageing timer to be 600 seconds. This is to be on the safer side where ARP update interval is 300 seconds and SONiC does not flood when ARP is aged out. Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
21 lines
533 B
Django/Jinja
21 lines
533 B
Django/Jinja
{# the range of hash_seed is 0-15 #}
|
|
{# set default hash seed to 0 #}
|
|
{% set hash_seed = 0 %}
|
|
{% if DEVICE_METADATA.localhost.type %}
|
|
{% if DEVICE_METADATA.localhost.type == "ToRRouter" %}
|
|
{% set hash_seed = 0 %}
|
|
{% elif DEVICE_METADATA.localhost.type == "LeafRouter" %}
|
|
{% set hash_seed = 10 %}
|
|
{% endif %}
|
|
{% endif %}
|
|
[
|
|
{
|
|
"SWITCH_TABLE:switch": {
|
|
"ecmp_hash_seed": "{{ hash_seed }}",
|
|
"lag_hash_seed": "{{ hash_seed }}",
|
|
"fdb_aging_time": "600"
|
|
},
|
|
"OP": "SET"
|
|
}
|
|
]
|