Example #1
0
    def __init__(self, ruleset, xml_tag):
        ObjectSet.__init__(self, ruleset)
        self.next_id = 1
        self.xml_tag = xml_tag

        # acl identifier (int) => Acl object
        self.acls = {}

        # ("eth0", "eth1") or "INPUT" => InputChain, OutputChain or ForwardChain
        self.chains = {}
Example #2
0
 def __init__(self, ruleset):
     dict.__init__(self)
     ObjectSet.__init__(self, ruleset)