Support a new ACL table type called L3V4V6. (#14803)

This table supports both v4 and v6 Match types.

HLD: sonic-net/SONiC#1267

Signed-off-by: Ravi(Marvell) rck@innovium.com

Signed-off-by: Ravi(Marvell) rck@innovium.com
This commit is contained in:
Ravi [Marvell] 2023-05-02 01:44:56 +05:30 committed by GitHub
parent 59178e3636
commit 147e99ed9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 0 deletions

View File

@ -143,5 +143,8 @@
"ACL_RULE_WRONG_AETH_SYNDROME": {
"desc": "Configure invalid AETH_SYNDROME in decimal format.",
"eStrKey" : "Pattern"
},
"ACL_TABLE_L3V4V6_TABLE_TYPE": {
"desc": "ACL_TABLE Validate type L3V4V6."
}
}

View File

@ -1146,5 +1146,69 @@
]
}
}
},
"ACL_TABLE_L3V4V6_TABLE_TYPE": {
"sonic-acl:sonic-acl": {
"sonic-acl:ACL_RULE": {
"ACL_RULE_LIST": [
{
"ACL_TABLE_NAME": "DATA-ACL-V4V6",
"IP_TYPE": "IPV4",
"DST_IP": "10.186.72.64/26",
"PACKET_ACTION": "FORWARD",
"PRIORITY": 999960,
"RULE_NAME": "Rule_40",
"SRC_IP": "10.176.0.0/15"
},
{
"ACL_TABLE_NAME": "DATA-ACL-V4V6",
"DST_IPV6": "2a04:f547:43:320::/64",
"IP_TYPE": "IPV6",
"PACKET_ACTION": "FORWARD",
"PRIORITY": 999980,
"RULE_NAME": "Rule_20",
"SRC_IPV6": "2a04:f547:41::/48"
}
]
},
"sonic-acl:ACL_TABLE": {
"ACL_TABLE_LIST": [
{
"ACL_TABLE_NAME": "DATA-ACL-V4V6",
"policy_desc": "Filter IPv4 and IPv6",
"ports": [
"Ethernet0",
"Ethernet1"
],
"stage": "EGRESS",
"type": "L3V4V6"
}
]
}
},
"sonic-port:sonic-port": {
"sonic-port:PORT": {
"PORT_LIST": [
{
"admin_status": "up",
"alias": "eth0",
"description": "Ethernet0",
"mtu": 9000,
"lanes": "0,1,2,3",
"name": "Ethernet0",
"speed": 25000
},
{
"admin_status": "up",
"alias": "eth1",
"description": "Ethernet1",
"mtu": 9000,
"lanes": "10,11,12,13",
"name": "Ethernet1",
"speed": 25000
}
]
}
}
}
}

View File

@ -88,6 +88,7 @@ module sonic-types {
enum L2;
enum L3;
enum L3V6;
enum L3V4V6;
enum MIRROR;
enum MIRRORV6;
enum MIRROR_DSCP;