X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build-aux%2Fextract-ofp-msgs;h=5eaa141cae25da04b53a1c4a58c9d661db0972bb;hb=85b20fd6ee585f462e012fbcc7f966a81edab2ed;hp=fe92dae0d5ea64cc295caac19ad7470d500d8b37;hpb=982697a4d24caa0a3bdaf85db67619338b382e50;p=sliver-openvswitch.git diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs index fe92dae0d..5eaa141ca 100755 --- a/build-aux/extract-ofp-msgs +++ b/build-aux/extract-ofp-msgs @@ -28,7 +28,10 @@ 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), + "1.1-1.2": (OFP11_VERSION, OFP12_VERSION), + "": (0x01, 0xff)} def get_line(): global line @@ -103,7 +106,7 @@ def extract_ofp_msgs(output_file_name): comment += ' %s' % line.lstrip('* \t').rstrip(' \t\r\n') comment = comment[:-2].rstrip() - m = re.match(r'([A-Z]+) ([-.+\d]+) \((\d+)\): ([^.]+)\.$', comment) + m = re.match(r'([A-Z]+) ([-.+\d]+|) \((\d+)\): ([^.]+)\.$', comment) if not m: fatal("unexpected syntax between messages") type_, versions, number, contents = m.groups()