X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Flacp.at;h=7d96143cada107d14247caf298e58aa8f81923cb;hb=3123c8fda5f5ffa2e989eec780db438dc34bb0d0;hp=de7a3a7bae7755be515a40a87102de17a9d908a3;hpb=742468d943cf2212d633951db2a6a72844b4f97d;p=openvswitch diff --git a/tests/lacp.at b/tests/lacp.at index de7a3a7b..7d96143c 100644 --- a/tests/lacp.at +++ b/tests/lacp.at @@ -6,8 +6,7 @@ OVS_VSWITCHD_START([\ set Port p1 lacp=active --\ set Interface p1 type=dummy ]) -AT_CHECK([ovs-appctl lacp/show], [0], [stdout]) -AT_CHECK([cat stdout], [0], [dnl +AT_CHECK([ovs-appctl lacp/show], [0], [dnl ---- p1 ---- status: active negotiated sys_id: aa:55:aa:55:00:00 @@ -18,6 +17,7 @@ AT_CHECK([cat stdout], [0], [dnl slave: p1: expired attached port_id: 1 port_priority: 65535 + may_enable: false actor sys_id: aa:55:aa:55:00:00 actor sys_priority: 65535 @@ -33,10 +33,11 @@ slave: p1: expired attached partner key: 0 partner state: timeout ]) +AT_CHECK([ovs-appctl bond/show]) OVS_VSWITCHD_STOP AT_CLEANUP -AT_SETUP([lacp - config]) +AT_SETUP([lacp - multi port config]) OVS_VSWITCHD_START([dnl add-bond br0 bond p1 p2 --\ set Port bond lacp=active \ @@ -64,6 +65,7 @@ AT_CHECK([sed -e 's/aggregation key:.*/aggregation key: /' < stdout], [ slave: p1: expired attached port_id: 11 port_priority: 111 + may_enable: false actor sys_id: 11:22:33:44:55:66 actor sys_priority: 54321 @@ -82,6 +84,7 @@ slave: p1: expired attached slave: p2: expired attached port_id: 22 port_priority: 222 + may_enable: false actor sys_id: 11:22:33:44:55:66 actor sys_priority: 54321 @@ -97,5 +100,20 @@ slave: p2: expired attached partner key: 0 partner state: timeout ]) +AT_CHECK([ovs-appctl bond/show], [0], [dnl +---- bond ---- +bond_mode: active-backup +bond-hash-basis: 0 +updelay: 0 ms +downdelay: 0 ms +lacp_status: negotiated + +slave p1: disabled + may_enable: false + +slave p2: disabled + may_enable: false + +]) OVS_VSWITCHD_STOP AT_CLEANUP