Resolve "ACLs applied on multiple endpoints of a device are not removed by deleting the ACL"

Closes #287 (closed)

Merge request reports

Loading
+2 −2
Changes for src/nbi/service/ietf_acl/Acl.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -64,8 +64,8 @@ class Acl(Resource):
            _config_rule.CopyFrom(config_rule)
            _config_rule.action = ConfigActionEnum.CONFIGACTION_DELETE
            delete_config_rules.append(_config_rule)
            break
        else:

        if not delete_config_rules:
            raise NotFound('Acl({:s}) not found in Device({:s})'.format(str(acl_name), str(device_uuid)))

        device_client = DeviceClient()
Loading