Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!347Resolve "ACLs applied on multiple endpoints of a device are not removed by deleting the ACL"
...@@ -64,8 +64,8 @@ class Acl(Resource): ...@@ -64,8 +64,8 @@ class Acl(Resource):
_config_rule.CopyFrom(config_rule) _config_rule.CopyFrom(config_rule)
_config_rule.action = ConfigActionEnum.CONFIGACTION_DELETE _config_rule.action = ConfigActionEnum.CONFIGACTION_DELETE
delete_config_rules.append(_config_rule) 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))) raise NotFound('Acl({:s}) not found in Device({:s})'.format(str(acl_name), str(device_uuid)))
device_client = DeviceClient() device_client = DeviceClient()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment