[Dual-ToR] add default value for ACL rule for mellanox platform (#13547)

- Why I did it
Need to add the possibility to choose between dropping packets (using ACL) on ingress or egress in Dual ToR scenario

- How I did it
Add new attribute "mux_tunnel_ingress_acl" to SYSTEM_DEFAULTS table

- How to verify it
check that new attribute exists in redis:
admin@sonic:~$ redis-cli -n 4
127.0.0.1:6379[4]> HGETALL SYSTEM_DEFAULTS|mux_tunnel_ingress_acl
1."state"
2."false"

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
This commit is contained in:
Andriy Yurkiv 2023-02-22 20:25:54 +02:00 committed by GitHub
parent 5a2a95998c
commit 5ad78abea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View File

@ -133,5 +133,16 @@
"digits_class": "true",
"special_class": "true"
}
},
"SYSTEM_DEFAULTS" : {
{%- if include_mux == "y" %}
"mux_tunnel_egress_acl": {
{%- if sonic_asic_platform == "mellanox" %}
"status": "enabled"
{% else %}
"status": "disabled"
{% endif %}
}
{% endif %}
}
}

View File

@ -2227,6 +2227,10 @@
"SYSTEM_DEFAULTS": {
"tunnel_qos_remap": {
"status": "enabled"
},
"mux_tunnel_egress_acl":
{
"status": "enabled"
}
},
"LOSSLESS_TRAFFIC_PATTERN": {

View File

@ -6,6 +6,10 @@
{
"name": "tunnel_qos_remap",
"status": "enabled"
},
{
"name": "mux_tunnel_egress_acl",
"status": "enabled"
}
]
}
@ -18,6 +22,10 @@
{
"name": "tunnel_qos_remap",
"status": "invalid_status"
},
{
"name": "mux_tunnel_egress_acl",
"status": "invalid_status"
}
]
}