1 AT_BANNER([autopath link selection])
3 AT_SETUP([autopath basic])
4 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1, NXM_NX_REG0[[]])'], [0],
6 chosen protocol: OpenFlow10-table_id
7 OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(1,NXM_NX_REG0[[]])
9 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(2, NXM_NX_REG0[[2..30]])'], [0],
10 [usable protocols: any
11 chosen protocol: OpenFlow10-table_id
12 OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(2,NXM_NX_REG0[[2..30]])
14 AT_CHECK([[sed 's/^[^|]*|[^|]*|//' stderr]], [0], [dnl
15 autopath|WARN|The autopath action is deprecated and may be removed in February 2013. Please email dev@openvswitch.org with concerns.
19 AT_SETUP([autopath action missing argument])
20 AT_CHECK([ovs-ofctl parse-flow actions=autopath], [1], [],
21 [ovs-ofctl: : not enough arguments to autopath action
25 AT_SETUP([autopath action bad port])
26 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[[]])'], [1], [],
27 [ovs-ofctl: bad, NXM_NX_REG0[[]]: bad port number
31 AT_SETUP([autopath action destination too narrow])
32 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1,NXM_NX_REG0[[0..7]])'], [1], [],
33 [ovs-ofctl: 1,NXM_NX_REG0[[0..7]]: 8-bit destination field has 256 possible values, less than required 65536