mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
parent
ecba758c58
commit
078a6d8d34
@ -1131,9 +1131,13 @@ class QemuVM(BaseNode):
|
|||||||
adapter_number=adapter_number))
|
adapter_number=adapter_number))
|
||||||
|
|
||||||
if self.ubridge:
|
if self.ubridge:
|
||||||
yield from self._add_ubridge_udp_connection("QEMU-{}-{}".format(self._id, adapter_number),
|
try:
|
||||||
self._local_udp_tunnels[adapter_number][1],
|
yield from self._add_ubridge_udp_connection("QEMU-{}-{}".format(self._id, adapter_number),
|
||||||
nio)
|
self._local_udp_tunnels[adapter_number][1],
|
||||||
|
nio)
|
||||||
|
except IndexError:
|
||||||
|
raise QemuError('Adapter {adapter_number} does not exist on QEMU VM "{name}"'.format(name=self._name,
|
||||||
|
adapter_number=adapter_number))
|
||||||
elif self.is_running():
|
elif self.is_running():
|
||||||
raise QemuError("Sorry, adding a link to a started Qemu VM is not supported without using uBridge.")
|
raise QemuError("Sorry, adding a link to a started Qemu VM is not supported without using uBridge.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user