From 5429363097829c8ff0622b0da857c657369c925a Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Thu, 3 Sep 2009 19:09:04 +0000 Subject: [PATCH] --- sfatables/commands/Add.py | 2 ++ sfatables/matches/hrn.xml | 3 ++- sfatables/targets/RESTRICT_TO_NODES.xml | 18 +++++++++++++ sfatables/targets/RESTRICT_TO_NODES.xml.orig | 0 sfatables/targets/RESTRICT_TO_NODE_GROUP.xml | 19 ++++++++++++++ .../targets/RESTRICT_TO_NODE_GROUP.xml.orig | 0 sfatables/targets/filternodes.xsl | 26 ------------------- sfatables/targets/restrict_to_nodes.xsl | 9 +++++++ 8 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 sfatables/targets/RESTRICT_TO_NODES.xml create mode 100644 sfatables/targets/RESTRICT_TO_NODES.xml.orig create mode 100644 sfatables/targets/RESTRICT_TO_NODE_GROUP.xml create mode 100644 sfatables/targets/RESTRICT_TO_NODE_GROUP.xml.orig delete mode 100644 sfatables/targets/filternodes.xsl create mode 100644 sfatables/targets/restrict_to_nodes.xsl diff --git a/sfatables/commands/Add.py b/sfatables/commands/Add.py index 5064ee69..26ba543b 100644 --- a/sfatables/commands/Add.py +++ b/sfatables/commands/Add.py @@ -39,6 +39,8 @@ class Add(Command): if (hasattr(match_options,option_name)): context = p.xpathEval("//rule/argument[name='%s']"%option_name) + import pdb + pdb.set_trace() if (not context): raise Exception('Unknown option %s for match %s'%(option,option['name'])) else: diff --git a/sfatables/matches/hrn.xml b/sfatables/matches/hrn.xml index e6444e89..a931927c 100644 --- a/sfatables/matches/hrn.xml +++ b/sfatables/matches/hrn.xml @@ -8,7 +8,8 @@ as the one matched by this rule. --> - + + user-hrn diff --git a/sfatables/targets/RESTRICT_TO_NODES.xml b/sfatables/targets/RESTRICT_TO_NODES.xml new file mode 100644 index 00000000..538db283 --- /dev/null +++ b/sfatables/targets/RESTRICT_TO_NODES.xml @@ -0,0 +1,18 @@ + + + + + + whitelist + Prefix of nodes to whitelist for this match. + PREFIX + + + blacklist + Prefix of nodes to blacklist for this match. + PREFIX + + + + + diff --git a/sfatables/targets/RESTRICT_TO_NODES.xml.orig b/sfatables/targets/RESTRICT_TO_NODES.xml.orig new file mode 100644 index 00000000..e69de29b diff --git a/sfatables/targets/RESTRICT_TO_NODE_GROUP.xml b/sfatables/targets/RESTRICT_TO_NODE_GROUP.xml new file mode 100644 index 00000000..bb4465ba --- /dev/null +++ b/sfatables/targets/RESTRICT_TO_NODE_GROUP.xml @@ -0,0 +1,19 @@ + + + + + + + whitelist + Name of whitelisted node group + NODE-GROUP + + + blacklist + Name of the blacklisted node group + NODE-GROUP + + + + diff --git a/sfatables/targets/RESTRICT_TO_NODE_GROUP.xml.orig b/sfatables/targets/RESTRICT_TO_NODE_GROUP.xml.orig new file mode 100644 index 00000000..e69de29b diff --git a/sfatables/targets/filternodes.xsl b/sfatables/targets/filternodes.xsl deleted file mode 100644 index d65a2ae6..00000000 --- a/sfatables/targets/filternodes.xsl +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - True - - - False - - - - - - - - diff --git a/sfatables/targets/restrict_to_nodes.xsl b/sfatables/targets/restrict_to_nodes.xsl new file mode 100644 index 00000000..bf63cbc8 --- /dev/null +++ b/sfatables/targets/restrict_to_nodes.xsl @@ -0,0 +1,9 @@ + + + + + + + + -- 2.43.0