From f7866302ad749a87e91516e1e37dbaec6f83c61c Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Wed, 16 Sep 2009 13:44:24 +0000 Subject: [PATCH] --- sfatables/TO_CLEANUP | 2 ++ sfatables/{exec.py => runtime.py} | 1 + 2 files changed, 3 insertions(+) create mode 100644 sfatables/TO_CLEANUP rename sfatables/{exec.py => runtime.py} (99%) 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: -- 2.43.0