Skip to content

Commit

Permalink
Add new counter capability, and expose configuration control per ACL …
Browse files Browse the repository at this point in the history
…set and per ACL entry
  • Loading branch information
nokia1adam committed Jun 3, 2024
1 parent 3c810f3 commit 849eca5
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 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.3.4";

revision "2024-06-03" {
description
"Add configuration control for statistics collection per
ACL-set and per ACL entry.";
reference "1.3.4";
}

revision "2023-02-06" {
description
Expand Down Expand Up @@ -233,6 +240,12 @@ module openconfig-acl {
and reported per ACL entry.";
}

identity NONE {
base ACL_COUNTER_CAPABILITY;
description
"ACL counters are not incremented.";
}

// grouping statements

// input interface
Expand Down Expand Up @@ -405,6 +418,16 @@ module openconfig-acl {
Entry.";
}

leaf counter {
type identityref {
base ACL_COUNTER_CAPABILITY;
}
description
"Specify the counter resources that should be allocated to
the ACL entry. This setting overrides configuration at the
ACL set level.";
}

}

grouping access-list-entries-state {
Expand Down Expand Up @@ -527,6 +550,15 @@ module openconfig-acl {
"Description, or comment, for the ACL set";
}

leaf counter {
type identityref {
base ACL_COUNTER_CAPABILITY;
}
description
"Specify the counter resources that should be allocated to
the ACL entries of the ACL set. This setting can be overridden
on a per ACL entry basis.";
}
}

grouping acl-set-state {
Expand Down Expand Up @@ -891,7 +923,8 @@ module openconfig-acl {
}
description
"System reported indication of how ACL counters are reported
by the target";
by the target. If the setting is not the same for all ACL
entries of all ACL sets, no value is returned.";
}
}
grouping acl-top {
Expand Down

0 comments on commit 849eca5

Please sign in to comment.