diff --git a/models/yang/sonic/sonic-acl.yang b/models/yang/sonic/sonic-acl.yang index fba2aad4a..03c4d1272 100644 --- a/models/yang/sonic/sonic-acl.yang +++ b/models/yang/sonic/sonic-acl.yang @@ -61,6 +61,7 @@ module sonic-acl { enum MIRRORV6; enum L3; enum L3V6; + enum L3V4V6; } } @@ -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 { @@ -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; } } } @@ -204,7 +205,7 @@ 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; @@ -212,7 +213,7 @@ module sonic-acl { } } - leaf DSCP { + leaf DSCP { type inet:dscp; } }