from data_structures.network_collection import NetworkCollection


class Cluster:
    def __init__(self, name, network_dict, security_level):
        """
        Constructor for Cluster data structure.

        self.name -> str
        self.security_level -> int
        self.networks -> list(NetworkCollection)
        """
        self.name = name
        self.security_level = security_level
        self.networks = [NetworkCollection(ipv4_network=network, raw_entry_list=raw_entry_list)
                         for network, raw_entry_list in network_dict.items()]

from data_structures.network_collection import NetworkCollection


class Cluster:
    def __init__(self, name, network_dict, security_level):
        """
        Constructor for Cluster data structure.

        self.name -> str
        self.security_level -> int
        self.networks -> list(NetworkCollection)
        """
        self.name = name
        self.security_level = security_level
        self.networks = [NetworkCollection(ipv4_network=network, raw_entry_list=raw_entry_list)
                         for network, raw_entry_list in network_dict.items()]

Constructor for Cluster data structure.          self.name -> str         self.security_level -> int         self.networks -> list(NetworkCollection)