git://git.onelab.eu
/
sfa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
cac5445444f8f1aaf594231f2396358c2c23b724
[sfa.git]
/
sfatables
/
commands
/
Delete.py
1
import os, time
2
from sfatables.command import Command
3
4
class Delete(Command):
5
options = [('-D','--delete')]
6
help = 'Delete a rule from a chain'
7
key='delete_rule'
8
matches = False
9
targets = False
10
11
def __init__(self):
12
return
13
14
def call(self):
15
# Override this function
16
return True
17
18
def __call__(self, option, opt_str, value, parser, *args, **kwargs):
19
return self.call(option)