X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=tests%2Fofproto.at;h=729121a7f635c0df30570d6d206e87a10829e054;hb=23a3123832b8a9718ac50010c261b76749a06c81;hp=5c40c7d8ff9b7c60dc09f374b705d9ea887f914b;hpb=efee3309ff13dc1adf212da11a8919b60b249c7c;p=cascardo%2Fovs.git diff --git a/tests/ofproto.at b/tests/ofproto.at index 5c40c7d8f..729121a7f 100644 --- a/tests/ofproto.at +++ b/tests/ofproto.at @@ -441,6 +441,14 @@ AT_CHECK([STRIP_XIDS stdout], [0], [dnl OFPST_GROUP_DESC reply (OF1.5): group_id=1234,type=all,bucket=bucket_id:0,actions=output:0,bucket=bucket_id:1,actions=output:1,bucket=bucket_id:10,actions=output:10,bucket=bucket_id:11,actions=output:11,bucket=bucket_id:14,actions=output:14,bucket=bucket_id:15,actions=output:15 ]) + +# Verify that duplicate bucket IDs are rejected. +AT_CHECK([ovs-ofctl -O OpenFlow15 -vwarn insert-buckets br0 group_id=1234,command_bucket_id=last,bucket=bucket_id:14,actions=output:14,bucket=bucket_id:15,actions=output:15], [1], [], [stderr]) +AT_CHECK([STRIP_XIDS stderr | sed '/truncated/,$d'], [0], [dnl +OFPT_ERROR (OF1.5): OFPGMFC_BUCKET_EXISTS +OFPT_GROUP_MOD (OF1.5): +]) + AT_CHECK([ovs-ofctl -O OpenFlow15 -vwarn insert-buckets br0 group_id=1234,command_bucket_id=15]) AT_CHECK([ovs-ofctl -O OpenFlow15 -vwarn dump-groups br0], [0], [stdout]) AT_CHECK([STRIP_XIDS stdout], [0], [dnl