def start(self, attempts=<NUM_LIT:5>, timeout=<NUM_LIT:2>):
if not self.alive():<EOL><INDENT>with LogTask('<STR_LIT>' % self.name()):<EOL><INDENT>net = self.libvirt_con.networkCreateXML(self._libvirt_xml())<EOL>if net is None:<EOL><INDENT>raise RuntimeError(<EOL>'<STR_LIT>' %<EOL>(self._libvirt_xml())<EOL>)<EOL><DEDENT>for _ in range(attempts):<EOL><INDENT>if net.isActive():<EOL><INDENT>return<EOL><DEDENT>LOGGER.debug(<EOL>'<STR_LIT>', net.name()<EOL>)<EOL>time.sleep(timeout)<EOL><DEDENT>raise RuntimeError(<EOL>'<STR_LIT>' % net.name()<EOL>)<EOL><DEDENT><DEDENT>
Start the network, will check if the network is active ``attempts``
times, waiting ``timeout`` between each attempt.

Args:
    attempts (int): number of attempts to check the network is active
    timeout  (int): timeout for each attempt

Returns:
    None

Raises:
    RuntimeError: if network creation failed, or failed to verify it is
    active.