We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4745edf commit 436e863Copy full SHA for 436e863
src/sonic-yang-models/yang-templates/sonic-policer.yang.j2
@@ -14,10 +14,6 @@ module sonic-policer {
14
prefix stypes;
15
}
16
17
- import sonic-acl {
18
- prefix acl;
19
- }
20
-
21
description "Policer YANG Module for SONiC OS";
22
23
revision 2022-02-03 {
@@ -123,12 +119,6 @@ module sonic-policer {
123
119
default "forward";
124
120
description "Red action";
125
121
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
132
122
/* end of list POLICER_LIST */
133
134
/* end of container POLICER */
0 commit comments