summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2014-11-12 15:45:17 +0900
committerBen Pfaff <blp@nicira.com>2014-11-12 08:57:03 -0800
commit05f589da7702f96d7ba148ded145eeb5f19057d8 (patch)
tree036d9332adc7203ded3bb77b4301cd3eb460329f /tests
parentb5af03d7e883b9607cd86b62f94982fe2cbba191 (diff)
downloadopenvswitch-05f589da7702f96d7ba148ded145eeb5f19057d8.tar.gz
ofproto: Test that group commands fail for OpenFlow 1.0
Groups are not supported by OpenFlow 1.0 Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ofproto.at19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ofproto.at b/tests/ofproto.at
index 720ceb783..f845fef99 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -264,6 +264,25 @@ AT_CLEANUP
dnl This is really bare-bones.
dnl It at least checks request and reply serialization and deserialization.
dnl Actions definition listed in both supported formats (w/ actions=)
+AT_SETUP([ofproto - no group support (OpenFlow 1.0)])
+OVS_VSWITCHD_START
+AT_DATA([groups.txt], [dnl
+group_id=1234,type=all,bucket=output:10
+group_id=1235,type=all,bucket=actions=output:10
+])
+AT_DATA([stderr], [dnl
+ovs-ofctl: none of the usable flow formats (OXM,OpenFlow11) is among the allowed flow formats (OpenFlow10,NXM)
+])
+AT_CHECK([ovs-ofctl -O OpenFlow10 -vwarn add-groups br0 groups.txt], [1], ,[stderr])
+AT_CHECK([ovs-ofctl -O OpenFlow10 -vwarn mod-group br0 'group_id=1234,type=all,bucket=output:10'], [1], ,[stderr])
+AT_CHECK([ovs-ofctl -O OpenFlow10 -vwarn del-groups br0], [1], ,[stderr])
+AT_CHECK([ovs-ofctl -O OpenFlow10 -vwarn dump-groups br0 ], [1], ,[stderr])
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
+dnl This is really bare-bones.
+dnl It at least checks request and reply serialization and deserialization.
+dnl Actions definition listed in both supported formats (w/ actions=)
AT_SETUP([ofproto - del group (OpenFlow 1.1)])
OVS_VSWITCHD_START
AT_DATA([groups.txt], [dnl