X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fautopath.at;h=557c92c17f81d7447e44bd4a08681523d04e2f68;hb=dd445b79f7862580104c4c08edb9c65d42ad314c;hp=40e54d5e6351db2e221935bef9a121b82e299001;hpb=f8064ac96e4aa1600861f1d76ab424e0425ba429;p=sliver-openvswitch.git diff --git a/tests/autopath.at b/tests/autopath.at index 40e54d5e6..557c92c17 100644 --- a/tests/autopath.at +++ b/tests/autopath.at @@ -2,11 +2,18 @@ AT_BANNER([autopath link selection]) AT_SETUP([autopath basic]) AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1, NXM_NX_REG0[[]])'], [0], - [OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(1,NXM_NX_REG0[[]]) -], [ignore]) + [usable protocols: any +chosen protocol: OpenFlow10-table_id +OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(1,NXM_NX_REG0[[]]) +], [stderr]) AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(2, NXM_NX_REG0[[2..30]])'], [0], - [OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(2,NXM_NX_REG0[[2..30]]) -], [ignore]) + [usable protocols: any +chosen protocol: OpenFlow10-table_id +OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(2,NXM_NX_REG0[[2..30]]) +], [stderr]) +AT_CHECK([[sed 's/^[^|]*|[^|]*|//' stderr]], [0], [dnl +autopath|WARN|The autopath action is deprecated and may be removed in February 2013. Please email dev@openvswitch.org with concerns. +]) AT_CLEANUP AT_SETUP([autopath action missing argument]) @@ -17,13 +24,7 @@ AT_CLEANUP AT_SETUP([autopath action bad port]) AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[[]])'], [1], [], - [ovs-ofctl: bad, NXM_NX_REG0[[]]: autopath id 0 is not in valid range 1 to 4294967295 -]) -AT_CLEANUP - -AT_SETUP([autopath action bad destination]) -AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1, NXM_OF_VLAN_TCI[[]])'], [1], [], - [ovs-ofctl: 1, NXM_OF_VLAN_TCI[[]]: destination field must be a register + [ovs-ofctl: bad, NXM_NX_REG0[[]]: bad port number ]) AT_CLEANUP