From: Sapan Bhatia Date: Wed, 16 Sep 2009 13:44:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: sfa-0.9-3~70 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=f7866302ad749a87e91516e1e37dbaec6f83c61c --- diff --git a/sfatables/TO_CLEANUP b/sfatables/TO_CLEANUP new file mode 100644 index 00000000..1b98c009 --- /dev/null +++ b/sfatables/TO_CLEANUP @@ -0,0 +1,2 @@ +1# Load sfatables rules only once, not on every request. +2# Set request context based on the context requested by the match/target. diff --git a/sfatables/exec.py b/sfatables/runtime.py similarity index 99% rename from sfatables/exec.py rename to sfatables/runtime.py index 4afcb48e..0dab15d3 100644 --- a/sfatables/exec.py +++ b/sfatables/runtime.py @@ -21,6 +21,7 @@ class SFATablesRules: self.sorted_rule_list.append(XMLRule(chain_name, rule_number)) return + def apply(self, rspec): intermediate_rspec = rspec for rule in self.sorted_rule_list: