2 from sfatables.command import Command
4 import sfatables.globals
7 options = [('-A','--add')]
8 help = 'Add a rule to a chain'
15 def call(self, command_options, match_options, target_options):
16 filename = match_dir + "/"+match_options.name+".xml"
17 xmldoc = libxml2.parseFile(filename)
19 p = self.xmldoc.xpathNewContext()
21 context = p.xpathEval("//rule/argument[name='user-hrn']")