mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Fixes disabling the VPCS relay feature. Fixes #521.
This commit is contained in:
parent
3e89543ab9
commit
cb6df28f59
@ -106,7 +106,7 @@ class PortManager:
|
|||||||
return self._udp_host
|
return self._udp_host
|
||||||
|
|
||||||
@udp_host.setter
|
@udp_host.setter
|
||||||
def host(self, new_host):
|
def udp_host(self, new_host):
|
||||||
|
|
||||||
self._udp_host = new_host
|
self._udp_host = new_host
|
||||||
|
|
||||||
|
@ -419,8 +419,10 @@ class VPCSVM(BaseVM):
|
|||||||
command.extend(["-m", str(self._manager.get_mac_id(self.id))]) # the unique ID is used to set the MAC address offset
|
command.extend(["-m", str(self._manager.get_mac_id(self.id))]) # the unique ID is used to set the MAC address offset
|
||||||
command.extend(["-i", "1"]) # option to start only one VPC instance
|
command.extend(["-i", "1"]) # option to start only one VPC instance
|
||||||
command.extend(["-F"]) # option to avoid the daemonization of VPCS
|
command.extend(["-F"]) # option to avoid the daemonization of VPCS
|
||||||
if self._vpcs_version > parse_version("0.8"):
|
if self._vpcs_version >= parse_version("0.8b"):
|
||||||
command.extend(["-R"]) # disable relay feature of VPCS (starting with VPCS 0.8)
|
command.extend(["-R"]) # disable the relay feature of VPCS (starting with VPCS 0.8)
|
||||||
|
else:
|
||||||
|
log.warn("The VPCS relay feature could not be disabled because the VPCS version is below 0.8b")
|
||||||
|
|
||||||
nio = self._ethernet_adapter.get_nio(0)
|
nio = self._ethernet_adapter.get_nio(0)
|
||||||
if nio:
|
if nio:
|
||||||
|
Loading…
Reference in New Issue
Block a user