Added a "negate result" option
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 00:59:35 +0000 (00:59 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 16 Sep 2009 00:59:35 +0000 (00:59 +0000)
sfatables/sfatables
sfatables/targets/MAX_LINK_BW.xml

index 379b749..9abcf6c 100755 (executable)
@@ -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
index 3564529..6c91019 100644 (file)
@@ -7,7 +7,6 @@
             <help>Maximum link bandwidth.</help>
             <operand>bps</operand>
         </argument>
-        </argument>
     </rule>
     <processor filename="max_link_banwidth.xsl"/>
 </target>