From 7382ed26b380b60f5049b8cd80a282447eae023a Mon Sep 17 00:00:00 2001 From: SunilSamra Date: Fri, 9 Jun 2023 11:25:45 +0100 Subject: [PATCH] 901 - changed AccessControlList in access_control_list.py from a dict to a list --- src/primaite/acl/access_control_list.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/primaite/acl/access_control_list.py b/src/primaite/acl/access_control_list.py index 284ed764..e356d276 100644 --- a/src/primaite/acl/access_control_list.py +++ b/src/primaite/acl/access_control_list.py @@ -1,6 +1,6 @@ # Crown Copyright (C) Dstl 2022. DEFCON 703. Shared in confidence. """A class that implements the access control list implementation for the network.""" -from typing import Dict +from typing import List from primaite.acl.acl_rule import ACLRule @@ -10,7 +10,8 @@ class AccessControlList: def __init__(self): """Init.""" - self.acl: Dict[str, AccessControlList] = {} # A dictionary of ACL Rules + # A list of ACL Rules + self.acl: List[ACLRule] = [] def check_address_match(self, _rule, _source_ip_address, _dest_ip_address): """