X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fexec.py;fp=sfatables%2Fexec.py;h=0423850b2337f9d7f2cfc5ae16845ba141ed3688;hb=3911c6d97e010f6cf8faed8fc9800a90028d7aea;hp=5d096b6fe92df9a079189b2097710f1a45327bb5;hpb=f17d257364748630be54d23293c6def022e2a75b;p=sfa.git diff --git a/sfatables/exec.py b/sfatables/exec.py index 5d096b6f..0423850b 100644 --- a/sfatables/exec.py +++ b/sfatables/exec.py @@ -32,9 +32,39 @@ def main(): incoming = SFATablesRules('INCOMING') outgoing = SFATablesRules('OUTGOING') + rspec = """ + + + + + whitelist + plc.princeton + + + blacklist + plc.princeton.planetlab-04 + + + + + + + + + + + + + + """ + + print "%d rules loaded for INCOMING chain\n"%len(incoming.sorted_rule_list) print "%d rules loaded for OUTGOING chain\n"%len(outgoing.sorted_rule_list) + newrspec = incoming.apply(rspec) + import pdb + pdb.set_trace() return if __name__=="__main__":