예제 #1
0
파일: rules.py 프로젝트: maximerobin/Ufwi
    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 = {}
예제 #2
0
 def __init__(self, ruleset):
     dict.__init__(self)
     ObjectSet.__init__(self, ruleset)