Add error codes for Open Flow v1.2
authorSimon Horman <horms@verge.net.au>
Mon, 26 Mar 2012 20:46:35 +0000 (13:46 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Mar 2012 16:17:40 +0000 (09:17 -0700)
commit2e0525bcf5ba3f348795f303f8cb69c9fc033ff3
tree51d32ca129d79370e0314bbd8599a7f5b49c09f2
parent443565512810c66409099c00e0f25bf33aa4c409
Add error codes for Open Flow v1.2

* Where Open Flow 1.2 breaks apart error codes defined
  in previous versions, provide all new definitions to
  previous versions and map the numeric error code to
  the first first definition supplied in ofp-errors.h.
  The case handled so far is:
  OFPERR_OFPBIC_BAD_EXP_TYPE -> { OFPERR_OFPBIC_BAD_EXPERIMENTER,
                                  OFPERR_OFPBIC_BAD_EXP_TYPE }

* Where Open Flow 1.2 adds error codes that were previously
  defined as Nicira extension errors define the later in terms
  of the new codes.

Signed-off-by: Simon Horman <horms@verge.net.au>
[blp@nicira.com added better error checking in extract-ofp-errors, added
 unit tests, miscellaneous cleanup]
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Simon Horman <horms@verge.net.au>
build-aux/extract-ofp-errors
lib/nx-match.c
lib/ofp-errors.c
lib/ofp-errors.h
ofproto/ofproto.c
tests/automake.mk
tests/ofp-errors.at [new file with mode: 0644]
tests/ofp-print.at
tests/ovs-ofctl.at
tests/testsuite.at
utilities/ovs-ofctl.c