ofp-msgs: Allow 1.0-1.2 range
authorSimon Horman <horms@verge.net.au>
Thu, 9 Aug 2012 08:49:32 +0000 (17:49 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 10 Aug 2012 16:54:59 +0000 (09:54 -0700)
This is intended for use with OFPRAW_OFPST_TABLE_REQUEST
in order for it to be symmetric with OpenFlow 1.0, 1.1 and 1.2
versions of OFPRAW_OFPST1TABLE_REPLY.

OpenFlow 1.3 introduces yet another format for OFPRAW_OFPST1TABLE_REPLY.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
build-aux/extract-ofp-msgs

index fe92dae0d5ea64cc295caac19ad7470d500d8b37..ad1a8a8327946b0951c2352cb13d7f854734b4b4 100755 (executable)
@@ -28,7 +28,8 @@ version_map = {"1.0":     (OFP10_VERSION, OFP10_VERSION),
                "1.1+":    (OFP11_VERSION, OFP13_VERSION),
                "1.2+":    (OFP12_VERSION, OFP13_VERSION),
                "1.3+":    (OFP13_VERSION, OFP13_VERSION),
-               "1.0-1.1": (OFP10_VERSION, OFP11_VERSION)}
+               "1.0-1.1": (OFP10_VERSION, OFP11_VERSION),
+               "1.0-1.2": (OFP10_VERSION, OFP12_VERSION)}
 
 def get_line():
     global line