Skip to content

Commit

Permalink
Remove 'must' Condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shaygol committed Jan 15, 2025
1 parent 4745edf commit 0b13f04
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/sonic-yang-models/yang-templates/sonic-policer.yang.j2
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ module sonic-policer {
default "forward";
description "Red action";
}

/* prevent deletion of polocer that referenced by ACL rule.
Note that new policer won't be referenced by any ACL rules initially */
must "not(current()/../acl:sonic-acl/acl:ACL_RULE/acl:ACL_RULE_LIST[acl:POLICER_ACTION=current()/name])" {
error-message "Policer cannot be deleted when referenced by an ACL rule.";
}
/* end of list POLICER_LIST */
}
/* end of container POLICER */
Expand Down

0 comments on commit 0b13f04

Please sign in to comment.