From 0b13f04e5200682d17bc6579d26adb1ec945138b Mon Sep 17 00:00:00 2001 From: shaygol Date: Wed, 15 Jan 2025 15:38:44 +0200 Subject: [PATCH] Remove 'must' Condition --- src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 b/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 index 0479d0a1353c..9b33a580cfb5 100644 --- a/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 +++ b/src/sonic-yang-models/yang-templates/sonic-policer.yang.j2 @@ -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 */