コード例 #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
ファイル: object_dict.py プロジェクト: maximerobin/Ufwi
 def __init__(self, ruleset):
     dict.__init__(self)
     ObjectSet.__init__(self, ruleset)