示例#1
0
 def execute_async(self, ud):
     # Wait a bit here because buggy drivers don't like to do things
     # just as they are coming down.
     yield async_helpers.async_sleep(ud.radio.pre_up_sleep)
     yield async_helpers.wait_for_state(ud.radio._up_state_pub,
                                        operator.truth)
     returnValue('up')
示例#2
0
 def execute_async(self, ud):
     ud.dhcp.binding_publisher.set(None)
     ud.dhcp.hwaddr = yield async_helpers.wait_for_state(ud.dhcp.link_addr_state, lambda x: x != False)
     network_id = "" # Include MAC, network_id
     if network_id not in ud.dhcp.leases:
         ud.dhcp.leases[network_id] = DhcpLease()
     ud.dhcp.lease = ud.dhcp.leases[network_id]
     returnValue('init')
示例#3
0
 def execute_async(self, ud):
     # Wait a bit here because buggy drivers don't like to do things
     # just as they are coming down.
     yield async_helpers.async_sleep(ud.radio.pre_up_sleep)
     yield async_helpers.wait_for_state(ud.radio._up_state_pub, operator.truth)
     returnValue('up')