901 - fixed test_single_action_space.py test

This commit is contained in:
SunilSamra
2023-07-13 11:45:23 +01:00
parent ad4198da13
commit 771061a218
6 changed files with 4 additions and 10 deletions

View File

@@ -80,11 +80,8 @@ class AccessControlList:
Indicates block if all conditions are satisfied.
"""
for rule in self.acl:
print("loops through rule", rule, isinstance(rule, ACLRule))
if isinstance(rule, ACLRule):
print("finds rule")
if self.check_address_match(rule, _source_ip_address, _dest_ip_address):
print("source and dest ip match")
if (rule.get_protocol() == _protocol or rule.get_protocol() == "ANY") and (
str(rule.get_port()) == str(_port) or rule.get_port() == "ANY"
):