X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fexec.py;h=4afcb48e493b6b9a554933add22c5e4a88e7f6b0;hb=483772a0716028a34cb98012fbe252ffd445fedf;hp=5d096b6fe92df9a079189b2097710f1a45327bb5;hpb=f17d257364748630be54d23293c6def022e2a75b;p=sfa.git diff --git a/sfatables/exec.py b/sfatables/exec.py index 5d096b6f..4afcb48e 100644 --- a/sfatables/exec.py +++ b/sfatables/exec.py @@ -32,9 +32,44 @@ def main(): incoming = SFATablesRules('INCOMING') outgoing = SFATablesRules('OUTGOING') + rspec = """ + + + plc.princeton.sapan + + + + + hrn + plc + + + whitelist + plc.princeton + + + blacklist + plc.tp + + + + + + + + + + + + + """ + + 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) + print newrspec return if __name__=="__main__":