X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Flacp.at;h=ffc899666a3dc1de4ed2fe1cda1456a75e6035d2;hb=f40869bdf6feca4d3ff7c59a1fb1f7ac101bc967;hp=85447c9aa45a6836684f59ebbc5ff468743a4226;hpb=f3103dfa00d8c7c30af86cd861cca538caef4c15;p=sliver-openvswitch.git diff --git a/tests/lacp.at b/tests/lacp.at index 85447c9aa..ffc899666 100644 --- a/tests/lacp.at +++ b/tests/lacp.at @@ -141,6 +141,8 @@ OVS_VSWITCHD_START( AT_CHECK([ovs-appctl netdev-dummy/set-admin-state up], 0, [OK ]) +ovs-appctl time/stop + # Wait for up to 5 (simulated) seconds, until LACP negotiation finishes. i=0 while :; do @@ -290,13 +292,13 @@ AT_CHECK([grep 'active slave' stdout], [0], [dnl ]) # Redirect the patch link between p0 and p2 so that no packets get -# back and forth across them anymore. Then wait 2.5 simulated +# back and forth across them anymore. Then wait 4 simulated # seconds. The LACP state should become "expired" for p0 and p2. AT_CHECK([ovs-vsctl \ -- add-port br0 null0 -- set int null0 type=patch options:peer=p2 -- set int p2 options:peer=null0 \ -- add-port br1 null1 -- set int null1 type=patch options:peer=p0 -- set int p0 options:peer=null1]) -for i in `seq 0 25`; do ovs-appctl time/warp 100; done +for i in `seq 0 40`; do ovs-appctl time/warp 100; done AT_CHECK( [ovs-appctl lacp/show bond0 ovs-appctl lacp/show bond1