'Wait for bonding state change.
Wait up to 90 seconds to successfully ping the gateway.
This is to know when LACP state change has converged.
(0 seconds is 3x lacp timeout, use by protocol)'

def wait_for_state_change(self):

    netif('eth0').wait_for_carrier(timeout=60)
    wait_time = 0
    while (wait_time < 100):
        time.sleep(10)
        if (not utils.ping_default_gateway()):
            return True
        wait_time += 10
    return False
