Skip to content

Commit

Permalink
Support a new ACL table type called L3V4V6.
Browse files Browse the repository at this point in the history
This table supports both v4 and v6 Match types.

HLD: sonic-net/SONiC#1267

Signed-off-by: Ravi(Marvell) rck@innovium.com
  • Loading branch information
rck-innovium committed Apr 14, 2023
1 parent 22f82b4 commit 3340781
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions models/yang/sonic/sonic-acl.yang
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module sonic-acl {
enum MIRRORV6;
enum L3;
enum L3V6;
enum L3V4V6;
}
}

Expand All @@ -74,14 +75,14 @@ module sonic-acl {

container ACL_RULE {

list ACL_RULE_LIST {
list ACL_RULE_LIST {
key "aclname rulename";

leaf aclname {
type leafref {
path "../../../ACL_TABLE/ACL_TABLE_LIST/aclname";
}
}
}

leaf rulename {
type string {
Expand Down Expand Up @@ -161,11 +162,11 @@ module sonic-acl {
when "boolean(IP_TYPE[.='ANY' or .='IP' or .='IPV6' or .='IPV6ANY'])";
leaf SRC_IPV6 {
mandatory true;
type inet:ipv6-prefix;
type inet:ipv6-prefix;
}
leaf DST_IPV6 {
mandatory true;
type inet:ipv6-prefix;
type inet:ipv6-prefix;
}
}
}
Expand Down Expand Up @@ -204,15 +205,15 @@ module sonic-acl {
}
}

leaf TCP_FLAGS {
leaf TCP_FLAGS {
type string {
pattern "0[xX][0-9a-fA-F]{2}[/]0[xX][0-9a-fA-F]{2}" {
error-app-tag tcp-flag-invalid;
}
}
}

leaf DSCP {
leaf DSCP {
type inet:dscp;
}
}
Expand Down

0 comments on commit 3340781

Please sign in to comment.