Skip to content

Commit 436e863

Browse files
committed
Remove 'must' Condition
1 parent 4745edf commit 436e863

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/sonic-yang-models/yang-templates/sonic-policer.yang.j2

-10
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ module sonic-policer {
1414
prefix stypes;
1515
}
1616

17-
import sonic-acl {
18-
prefix acl;
19-
}
20-
2117
description "Policer YANG Module for SONiC OS";
2218

2319
revision 2022-02-03 {
@@ -123,12 +119,6 @@ module sonic-policer {
123119
default "forward";
124120
description "Red action";
125121
}
126-
127-
/* prevent deletion of polocer that referenced by ACL rule.
128-
Note that new policer won't be referenced by any ACL rules initially */
129-
must "not(current()/../acl:sonic-acl/acl:ACL_RULE/acl:ACL_RULE_LIST[acl:POLICER_ACTION=current()/name])" {
130-
error-message "Policer cannot be deleted when referenced by an ACL rule.";
131-
}
132122
/* end of list POLICER_LIST */
133123
}
134124
/* end of container POLICER */

0 commit comments

Comments
 (0)