import os, time
import libxml2
from sfatables.command import Command
-from sfatables.globals import *
+from sfatables.globals import sfatables_config, target_dir, match_dir
class Insert(Command):
def __init__(self):
def call(self, command_options, match_options, target_options):
if (len(command_options.args)<2):
- print "Please specify the chain and the rule number to insert, e.g. sfatables -I INCOMING 1 -- ...."
+ print("Please specify the chain and the rule number to insert, e.g. sfatables -I INCOMING 1 -- ....")
return
chain = command_options.args[0]