summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpsiyengar <prashanth_iyengar@alliedtelesis.com>2019-01-16 16:53:52 -0800
committerBen Pfaff <blp@ovn.org>2019-02-04 16:33:30 -0800
commit731dbbbe048c556396a70ec06aa5fcaf50b20463 (patch)
tree56f8268834d7c16d28406bda8cfdc6c965db8356 /tests
parent7f289e0212c799a083cbf123a9c08bc65ca14f58 (diff)
downloadopenvswitch-731dbbbe048c556396a70ec06aa5fcaf50b20463.tar.gz
Fix OpenFlow v1.3.4 Conf test failures: 430.500, 430.510
This commit adds additional verification to nx_pull_header__() in lib/nx-match.c to distinguish between bad match and bad action header conditions and return the appropriate error type/code. Signed-off-by: Prashanth Iyengar <prashanth_iyengar@alliedtelesis.com> Reviewed-by: Tony van der Peet <tony.vanderpeet@alliedtelesis.co.nz> Reviewed-by: Rahul Gupta <Rahul_Gupta@alliedtelesis.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ofp-actions.at14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ofp-actions.at b/tests/ofp-actions.at
index e320a92a8..38c2b5cbd 100644
--- a/tests/ofp-actions.at
+++ b/tests/ofp-actions.at
@@ -746,6 +746,20 @@ dnl Check the ONF extension form of "copy_field".
# actions=move:NXM_OF_IN_PORT[]->NXM_OF_VLAN_TCI[]
ffff 0020 4f4e4600 0c80 0000 0010 0000 0000 0000 00000002 00000802 00000000
+dnl Check OpenFlow v1.3.4 Conformance Test: 430.500.
+# bad OpenFlow13 actions: OFPBAC_BAD_SET_TYPE
+& ofp_actions|WARN|bad action at offset 0 (OFPBAC_BAD_SET_TYPE):
+& 00000000 00 19 00 08 80 00 fe 00-00 00 00 10 00 00 00 01
+& 00000010 00 00 00 00 00 00 00 00-
+0019 0008 8000fe00 000000100000 000100000000 00000000
+
+dnl Check OpenFlow v1.3.4 Conformance Test: 430.510.
+# bad OpenFlow13 actions: OFPBAC_BAD_SET_LEN
+& ofp_actions|WARN|bad action at offset 0 (OFPBAC_BAD_SET_LEN):
+& 00000000 00 19 00 10 80 00 08 07-00 01 02 03 04 05 00 00
+& 00000010 00 00 00 10 00 00 00 01-
+0019 0010 80000807 000102030405 000000000010 00000001
+
])
sed '/^[[#&]]/d' < test-data > input.txt
sed -n 's/^# //p; /^$/p' < test-data > expout