From 483772a0716028a34cb98012fbe252ffd445fedf Mon Sep 17 00:00:00 2001
From: Sapan Bhatia <sapanb@cs.princeton.edu>
Date: Wed, 16 Sep 2009 00:59:35 +0000
Subject: [PATCH] Added a "negate result" option

---
 sfatables/sfatables               | 1 +
 sfatables/targets/MAX_LINK_BW.xml | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfatables/sfatables b/sfatables/sfatables
index 379b749c..9abcf6cd 100755
--- a/sfatables/sfatables
+++ b/sfatables/sfatables
@@ -91,6 +91,7 @@ def main():
         match_parser = create_parser_xml_ext(match_dict)
         matches_str = ",".join(match_dict.keys())
         match_parser.add_option('-m','--match',dest='name',help='Match name (one of %s)'%matches_str, metavar = 'MATCH')
+        match_parser.add_option('-n','--negate',dest='negate',help='Negate result',action=store_true)
         (match_options, args) = match_parser.parse_args(pargs[1])
         try:
             name = match_options.name
diff --git a/sfatables/targets/MAX_LINK_BW.xml b/sfatables/targets/MAX_LINK_BW.xml
index 35645293..6c91019a 100644
--- a/sfatables/targets/MAX_LINK_BW.xml
+++ b/sfatables/targets/MAX_LINK_BW.xml
@@ -7,7 +7,6 @@
             <help>Maximum link bandwidth.</help>
             <operand>bps</operand>
         </argument>
-        </argument>
     </rule>
     <processor filename="max_link_banwidth.xsl"/>
 </target>
-- 
2.47.0