Skip to content

Commit 441cd1d

Browse files
authored
[yang] add Sample configuration for ACL_TABLE_TYPE (#10937)
Signed-off-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
1 parent 054eb25 commit 441cd1d

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/sonic-yang-models/tests/files/sample_config_db.json

+32-1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@
302302
"MIRROR_INGRESS_ACTION": "erspan",
303303
"DSCP": "10",
304304
"PRIORITY": "9999"
305+
},
306+
"DATAACL|RULE0": {
307+
"PRIORITY": "999",
308+
"PACKET_ACTION": "DROP",
309+
"IP_TYPE": "IPv4ANY",
310+
"SRC_IP": "1.1.1.1/32"
305311
}
306312
},
307313
"DEVICE_METADATA": {
@@ -816,6 +822,14 @@
816822
"Ethernet24"
817823
],
818824
"stage": "ingress"
825+
},
826+
"DATAACL": {
827+
"stage": "INGRESS",
828+
"type": "CUSTOM_L3",
829+
"ports": [
830+
"Ethernet0",
831+
"PortChannel0003"
832+
]
819833
}
820834

821835
},
@@ -1823,7 +1837,24 @@
18231837
"num_dumps": "3",
18241838
"memory": "0M-2G:256M,2G-4G:256M,4G-8G:384M,8G-:448M"
18251839
}
1826-
}
1840+
},
1841+
"ACL_TABLE_TYPE": {
1842+
"CUSTOM_L3": {
1843+
"matches": [
1844+
"IN_PORTS",
1845+
"OUT_PORTS",
1846+
"SRC_IP"
1847+
],
1848+
"actions": [
1849+
"PACKET_ACTION",
1850+
"MIRROR_INGRESS_ACTION"
1851+
],
1852+
"bind_points": [
1853+
"PORT",
1854+
"LAG"
1855+
]
1856+
}
1857+
}
18271858
},
18281859
"SAMPLE_CONFIG_DB_UNKNOWN": {
18291860
"UNKNOWN_TABLE": {

0 commit comments

Comments
 (0)