Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of derived-from-or-self #67

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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