<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_for_net(self, timeout=None, wait_polling_interval=None):
 """Wait for the device to be assigned an IP address. :param timeout: Maximum time to wait for an IP address to be defined :param wait_polling_interval: Interval at which to poll for ip address. """

        if timeout is None:
            timeout = self._timeout
        if wait_polling_interval is None:
            wait_polling_interval = self._wait_polling_interval

        self._logger.info("Waiting for network connection")
        poll_wait(self.get_ip_address, timeout=timeout)