action = 'store_const'
def __init__(self):
+ self.options = []
+ self.help = ''
+ self.type = 'command'
+ self.matches = False
+ self.targets = False
+ self.action = 'store_const'
+
return
def call(self, coptions, moptions, toptions):
from sfatables.xmlrule import *
class SFATablesRules:
- sorted_rule_list = []
-
def __init__(self, chain_name):
+ self.sorted_rule_list = []
chain_dir_path = "%s/%s"%(sfatables_config,chain_name)
rule_list = List().get_rule_list(chain_dir_path)
for rule_number in rule_list:
from sfatables.globals import *
class Xmlextension:
- context = ""
- processor = ""
- operand = "VALUE"
- arguments = []
- terminal = 0
-
def __init__(self, dir, component_name):
+ self.context = ""
+ self.processor = ""
+ self.operand = "VALUE"
+ self.arguments = []
+ self.terminal = 0
+
filename = dir+"/"+component_name+".xml"
self.xmldoc = libxml2.parseFile(filename)