meta-flow: Correctly set destination MAC in mf_set_flow_value().
[sliver-openvswitch.git] / tests / autopath.at
1 AT_BANNER([autopath link selection])
2
3 AT_SETUP([autopath basic])
4 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1, NXM_NX_REG0[[]])'], [0],
5   [OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(1,NXM_NX_REG0[[]])
6 ])
7 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(2, NXM_NX_REG0[[2..30]])'], [0],
8   [OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(2,NXM_NX_REG0[[2..30]])
9 ])
10 AT_CLEANUP
11
12 AT_SETUP([autopath action missing argument])
13 AT_CHECK([ovs-ofctl parse-flow actions=autopath], [1], [],
14   [ovs-ofctl: : not enough arguments to autopath action
15 ])
16 AT_CLEANUP
17
18 AT_SETUP([autopath action bad port])
19 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[[]])'], [1], [],
20   [ovs-ofctl: bad, NXM_NX_REG0[[]]: autopath id 0 is not in valid range 1 to 4294967295
21 ])
22 AT_CLEANUP
23
24 AT_SETUP([autopath action destination too narrow])
25 AT_CHECK([ovs-ofctl parse-flow 'actions=autopath(1,NXM_NX_REG0[[0..7]])'], [1], [],
26   [ovs-ofctl: 1,NXM_NX_REG0[[0..7]]: 8-bit destination field has 256 possible values, less than required 65536
27 ])
28 AT_CLEANUP
29