git://git.onelab.eu
/
sfa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
check if record exists before adding to PLC
[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)