From 441cd1d283d12ad96c4c0bf0d2b17c31e27a9e8d Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Fri, 27 May 2022 09:45:29 -0700 Subject: [PATCH] [yang] add Sample configuration for ACL_TABLE_TYPE (#10937) Signed-off-by: Sudharsan Dhamal Gopalarathnam --- .../tests/files/sample_config_db.json | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/sonic-yang-models/tests/files/sample_config_db.json b/src/sonic-yang-models/tests/files/sample_config_db.json index 01bcf4ecf1..d6a4e8f2a9 100644 --- a/src/sonic-yang-models/tests/files/sample_config_db.json +++ b/src/sonic-yang-models/tests/files/sample_config_db.json @@ -302,6 +302,12 @@ "MIRROR_INGRESS_ACTION": "erspan", "DSCP": "10", "PRIORITY": "9999" + }, + "DATAACL|RULE0": { + "PRIORITY": "999", + "PACKET_ACTION": "DROP", + "IP_TYPE": "IPv4ANY", + "SRC_IP": "1.1.1.1/32" } }, "DEVICE_METADATA": { @@ -816,6 +822,14 @@ "Ethernet24" ], "stage": "ingress" + }, + "DATAACL": { + "stage": "INGRESS", + "type": "CUSTOM_L3", + "ports": [ + "Ethernet0", + "PortChannel0003" + ] } }, @@ -1823,7 +1837,24 @@ "num_dumps": "3", "memory": "0M-2G:256M,2G-4G:256M,4G-8G:384M,8G-:448M" } - } + }, + "ACL_TABLE_TYPE": { + "CUSTOM_L3": { + "matches": [ + "IN_PORTS", + "OUT_PORTS", + "SRC_IP" + ], + "actions": [ + "PACKET_ACTION", + "MIRROR_INGRESS_ACTION" + ], + "bind_points": [ + "PORT", + "LAG" + ] + } + } }, "SAMPLE_CONFIG_DB_UNKNOWN": { "UNKNOWN_TABLE": {