Skip to content

Commit

Permalink
Merge pull request #67 from boucadair/boucadair-patch-1
Browse files Browse the repository at this point in the history
use of derived-from-or-self
  • Loading branch information
boucadair authored Dec 19, 2023
2 parents 7514658 + cdf2859 commit 3b58ecd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions yang/ietf-acl-enh.yang
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ module ietf-acl-enh {

identity counter-type {
description
"Base identity for deriving the Counter actions.";
"Base identity for deriving the counter actions.";
}

identity counter-name {
Expand Down Expand Up @@ -655,7 +655,8 @@ grouping mpls-match-parameters-config {
"The type of log action to be performed.";
}
leaf log-id {
when "../log-type = 'acl-enh:local-log'" {
when "derived-from-or-self(../log-type, "
+ "'acl-enh:local-log')" {
description
"Name of the log file updated when type is 'local-log'.";
}
Expand All @@ -677,7 +678,8 @@ grouping mpls-match-parameters-config {
"The type of counter action to be performed.";
}
leaf-list counter-name {
when "../counter-type = 'acl-enh:counter-name'" {
when "derived-from-or-self(../counter-type, "
+ "'acl-enh:counter-name')" {
description
"Name for the counter or variable to update when counter-type
is 'counter-name'.";
Expand Down

0 comments on commit 3b58ecd

Please sign in to comment.