/usr/src/openvswitch-1.4.0/tests/lacp.at is in openvswitch-datapath-dkms 1.4.0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | AT_BANNER([lacp])
AT_SETUP([lacp - config])
OVS_VSWITCHD_START([\
add-port br0 p1 --\
set Port p1 lacp=active --\
set Interface p1 type=dummy ])
AT_CHECK([ovs-appctl lacp/show], [0], [stdout])
AT_CHECK([cat stdout], [0], [dnl
---- p1 ----
status: active negotiated
sys_id: aa:55:aa:55:00:00
sys_priority: 65535
aggregation key: 1
lacp_time: slow
slave: p1: expired attached
port_id: 1
port_priority: 65535
actor sys_id: aa:55:aa:55:00:00
actor sys_priority: 65535
actor port_id: 1
actor port_priority: 65535
actor key: 1
actor state: activity synchronized collecting distributing expired
partner sys_id: 00:00:00:00:00:00
partner sys_priority: 0
partner port_id: 0
partner port_priority: 0
partner key: 0
partner state: timeout
])
OVS_VSWITCHD_STOP
AT_CLEANUP
AT_SETUP([lacp - config])
OVS_VSWITCHD_START([dnl
add-bond br0 bond p1 p2 --\
set Port bond lacp=active \
other_config:lacp-time="fast" \
other_config:lacp-system-id=11:22:33:44:55:66 \
other_config:lacp-system-priority=54321 --\
set Interface p1 type=dummy \
other_config:lacp-port-id=11 \
other_config:lacp-port-priority=111 \
other_config:lacp-aggregation-key=3333 --\
set Interface p2 type=dummy \
other_config:lacp-port-id=22 \
other_config:lacp-port-priority=222 \
other_config:lacp-aggregation-key=3333 ])
AT_CHECK([ovs-appctl lacp/show], [0], [stdout])
AT_CHECK([sed -e 's/aggregation key:.*/aggregation key: <omitted>/' < stdout], [0], [dnl
---- bond ----
status: active negotiated
sys_id: 11:22:33:44:55:66
sys_priority: 54321
aggregation key: <omitted>
lacp_time: fast
slave: p1: expired attached
port_id: 11
port_priority: 111
actor sys_id: 11:22:33:44:55:66
actor sys_priority: 54321
actor port_id: 11
actor port_priority: 111
actor key: 3333
actor state: activity timeout aggregation synchronized collecting distributing expired
partner sys_id: 00:00:00:00:00:00
partner sys_priority: 0
partner port_id: 0
partner port_priority: 0
partner key: 0
partner state: timeout
slave: p2: expired attached
port_id: 22
port_priority: 222
actor sys_id: 11:22:33:44:55:66
actor sys_priority: 54321
actor port_id: 22
actor port_priority: 222
actor key: 3333
actor state: activity timeout aggregation synchronized collecting distributing expired
partner sys_id: 00:00:00:00:00:00
partner sys_priority: 0
partner port_id: 0
partner port_priority: 0
partner key: 0
partner state: timeout
])
OVS_VSWITCHD_STOP
AT_CLEANUP
|