Commit 42c4f12e authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

fix: all acl config rules associated to device and uuid of the ACL rule are...

fix: all acl config rules associated to device and uuid of the ACL rule are removed upon delete request
parent e8de2be8
Loading
Loading
Loading
Loading
+2 −2
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()