X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fofp-errors.at;h=e99aca9afd8fd949930afc3d6ae8123890c04e56;hb=f40869bdf6feca4d3ff7c59a1fb1f7ac101bc967;hp=b45a33a557610dfbffebc3003ea71c96cbfccf06;hpb=8706009e555bb9fa04a5679e4be2c7c67506802b;p=sliver-openvswitch.git diff --git a/tests/ofp-errors.at b/tests/ofp-errors.at index b45a33a55..e99aca9af 100644 --- a/tests/ofp-errors.at +++ b/tests/ofp-errors.at @@ -90,11 +90,34 @@ AT_CHECK([ovs-ofctl print-error OFPBIC_BAD_EXPERIMENTER], [0], [dnl OpenFlow 1.0: -1,-1 OpenFlow 1.1: 3,5 OpenFlow 1.2: 3,5 +OpenFlow 1.3: 3,5 ]) AT_CHECK([ovs-ofctl print-error OFPBIC_BAD_EXP_TYPE], [0], [dnl OpenFlow 1.0: -1,-1 OpenFlow 1.1: 3,5 OpenFlow 1.2: 3,6 +OpenFlow 1.3: 3,6 +]) +AT_CLEANUP + +dnl The "bad role" error was a Nicira extension in OpenFlow 1.0 and 1.1. +dnl It was adopted as an official error code in OpenFlow 1.2. +AT_SETUP([encoding errors extension that became official]) +AT_KEYWORDS([ofp-print ofp-errors]) +AT_CHECK( + [ovs-ofctl encode-error-reply OFPRRFC_BAD_ROLE 0100000812345678], [0], [dnl +00000000 01 01 00 1c 12 34 56 78-b0 c2 00 00 00 00 23 20 @&t@ +00000010 00 01 02 01 01 00 00 08-12 34 56 78 @&t@ +]) +AT_CHECK( + [ovs-ofctl encode-error-reply OFPRRFC_BAD_ROLE 0200000812345678], [0], [dnl +00000000 02 01 00 1c 12 34 56 78-b0 c2 00 00 00 00 23 20 @&t@ +00000010 00 01 02 01 02 00 00 08-12 34 56 78 @&t@ +]) +AT_CHECK( + [ovs-ofctl encode-error-reply OFPRRFC_BAD_ROLE 0300000812345678], [0], [dnl +00000000 03 01 00 14 12 34 56 78-00 0b 00 02 03 00 00 08 @&t@ +00000010 12 34 56 78 @&t@ ]) AT_CLEANUP