3 AT_SETUP([lacp - config])
6 set Port p1 lacp=active --\
7 set Interface p1 type=dummy ])
9 AT_CHECK([ovs-appctl lacp/show], [0], [dnl
11 status: active negotiated
12 sys_id: aa:55:aa:55:00:00
17 slave: p1: expired attached
21 actor sys_id: aa:55:aa:55:00:00
22 actor sys_priority: 65535
24 actor port_priority: 65535
26 actor state: activity synchronized collecting distributing expired
28 partner sys_id: 00:00:00:00:00:00
29 partner sys_priority: 0
31 partner port_priority: 0
33 partner state: timeout
35 AT_CHECK([ovs-appctl bond/show])
39 AT_SETUP([lacp - multi port config])
40 OVS_VSWITCHD_START([dnl
41 add-bond br0 bond p1 p2 --\
42 set Port bond lacp=active \
43 other_config:lacp-time="fast" \
44 other_config:lacp-system-id=11:22:33:44:55:66 \
45 other_config:lacp-system-priority=54321 --\
46 set Interface p1 type=dummy \
47 other_config:lacp-port-id=11 \
48 other_config:lacp-port-priority=111 \
49 other_config:lacp-aggregation-key=3333 --\
50 set Interface p2 type=dummy \
51 other_config:lacp-port-id=22 \
52 other_config:lacp-port-priority=222 \
53 other_config:lacp-aggregation-key=3333 ])
55 AT_CHECK([ovs-appctl lacp/show], [0], [stdout])
56 AT_CHECK([sed -e 's/aggregation key:.*/aggregation key: <omitted>/' < stdout], [0], [dnl
58 status: active negotiated
59 sys_id: 11:22:33:44:55:66
61 aggregation key: <omitted>
64 slave: p1: expired attached
68 actor sys_id: 11:22:33:44:55:66
69 actor sys_priority: 54321
71 actor port_priority: 111
73 actor state: activity timeout aggregation synchronized collecting distributing expired
75 partner sys_id: 00:00:00:00:00:00
76 partner sys_priority: 0
78 partner port_priority: 0
80 partner state: timeout
82 slave: p2: expired attached
86 actor sys_id: 11:22:33:44:55:66
87 actor sys_priority: 54321
89 actor port_priority: 222
91 actor state: activity timeout aggregation synchronized collecting distributing expired
93 partner sys_id: 00:00:00:00:00:00
94 partner sys_priority: 0
96 partner port_priority: 0
98 partner state: timeout
100 AT_CHECK([ovs-appctl bond/show], [0], [dnl
102 bond_mode: active-backup
106 lacp_status: negotiated