Skip to content

Commit

Permalink
Add prefixing to ACL when conditionals that are part of reusable grou…
Browse files Browse the repository at this point in the history
…pings

  * (M) release/models/acl/openconfig-acl.yang
    - Add prefixing to when conditionals
  • Loading branch information
earies committed Jan 15, 2025
1 parent 850e572 commit e65644d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions release/models/acl/openconfig-acl.yang
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ module openconfig-acl {
packets should be handled. Entries have a type that indicates
the type of match criteria, e.g., MAC layer, IPv4, IPv6, etc.";

oc-ext:openconfig-version "1.3.3";
oc-ext:openconfig-version "1.4.0";

revision "2025-01-15" {
description
"Adjust prefixing for when conditionals that are part of reusable
groupings.";
reference "1.4.0";
}

revision "2023-02-06" {
description
Expand Down Expand Up @@ -451,45 +458,45 @@ module openconfig-acl {
}

uses oc-match:ethernet-header-top {
when "../../config/type='ACL_L2' or " +
"../../config/type='ACL_MIXED'" {
when "../../config/type='oc-acl:ACL_L2' or " +
"../../config/type='oc-acl:ACL_MIXED'" {
description
"MAC-layer fields are valid when the ACL type is L2 or
MIXED";
}
}

uses oc-match:ipv4-protocol-fields-top {
when "../../config/type='ACL_IPV4' or " +
"../../config/type='ACL_MIXED'" {
when "../../config/type='oc-acl:ACL_IPV4' or " +
"../../config/type='oc-acl:ACL_MIXED'" {
description
"IPv4-layer fields are valid when the ACL type is
IPv4 or MIXED";
}
}

uses oc-match:mpls-header-top {
when "../../config/type='ACL_MPLS' or " +
"../../config/type='ACL_MIXED'" {
when "../../config/type='oc-acl:ACL_MPLS' or " +
"../../config/type='oc-acl:ACL_MIXED'" {
description
"MPLS-layer fields are valid when the ACL type is
MPLS or MIXED";
}
}

uses oc-match:ipv6-protocol-fields-top {
when "../../config/type='ACL_IPV6' or " +
"../../config/type='ACL_MIXED'" {
when "../../config/type='oc-acl:ACL_IPV6' or " +
"../../config/type='oc-acl:ACL_MIXED'" {
description
"IPv6-layer fields are valid when the ACL type is
IPv6 or MIXED";
}
}

uses oc-match:transport-fields-top {
when "../../config/type='ACL_IPV6' or " +
"../../config/type='ACL_IPV4' or " +
"../../config/type='ACL_MIXED'" {
when "../../config/type='oc-acl:ACL_IPV6' or " +
"../../config/type='oc-acl:ACL_IPV4' or " +
"../../config/type='oc-acl:ACL_MIXED'" {
description
"Transport-layer fields are valid when specifying
L3 or MIXED ACL types";
Expand Down

0 comments on commit e65644d

Please sign in to comment.