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
22 actor sys_id: aa:55:aa:55:00:00
23 actor sys_priority: 65535
25 actor port_priority: 65535
27 actor state: activity synchronized collecting distributing expired
29 partner sys_id: 00:00:00:00:00:00
30 partner sys_priority: 0
32 partner port_priority: 0
34 partner state: timeout
36 AT_CHECK([ovs-appctl bond/show])
40 AT_SETUP([lacp - multi port config])
41 OVS_VSWITCHD_START([dnl
42 add-bond br0 bond p1 p2 --\
43 set Port bond lacp=active \
44 other_config:lacp-time="fast" \
45 other_config:lacp-system-id=11:22:33:44:55:66 \
46 other_config:lacp-system-priority=54321 --\
47 set Interface p1 type=dummy \
48 other_config:lacp-port-id=11 \
49 other_config:lacp-port-priority=111 \
50 other_config:lacp-aggregation-key=3333 --\
51 set Interface p2 type=dummy \
52 other_config:lacp-port-id=22 \
53 other_config:lacp-port-priority=222 \
54 other_config:lacp-aggregation-key=3333 ])
56 AT_CHECK([ovs-appctl lacp/show], [0], [stdout])
57 AT_CHECK([sed -e 's/aggregation key:.*/aggregation key: <omitted>/' < stdout], [0], [dnl
59 status: active negotiated
60 sys_id: 11:22:33:44:55:66
62 aggregation key: <omitted>
65 slave: p1: expired attached
70 actor sys_id: 11:22:33:44:55:66
71 actor sys_priority: 54321
73 actor port_priority: 111
75 actor state: activity timeout aggregation synchronized collecting distributing expired
77 partner sys_id: 00:00:00:00:00:00
78 partner sys_priority: 0
80 partner port_priority: 0
82 partner state: timeout
84 slave: p2: expired attached
89 actor sys_id: 11:22:33:44:55:66
90 actor sys_priority: 54321
92 actor port_priority: 222
94 actor state: activity timeout aggregation synchronized collecting distributing expired
96 partner sys_id: 00:00:00:00:00:00
97 partner sys_priority: 0
99 partner port_priority: 0
101 partner state: timeout
103 AT_CHECK([ovs-appctl bond/show], [0], [dnl
105 bond_mode: active-backup
109 lacp_status: negotiated