mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fixes TAP connection when using VPCS.
This commit is contained in:
parent
e62dd1a572
commit
a7dd0d3c51
@ -406,6 +406,9 @@ class VPCSVM(BaseVM):
|
|||||||
|
|
||||||
command = [self.vpcs_path]
|
command = [self.vpcs_path]
|
||||||
command.extend(["-p", str(self._console)]) # listen to console port
|
command.extend(["-p", str(self._console)]) # listen to console port
|
||||||
|
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(["-F"]) # option to avoid the daemonization of VPCS
|
||||||
|
|
||||||
nio = self._ethernet_adapter.get_nio(0)
|
nio = self._ethernet_adapter.get_nio(0)
|
||||||
if nio:
|
if nio:
|
||||||
@ -420,10 +423,6 @@ class VPCSVM(BaseVM):
|
|||||||
command.extend(["-e"])
|
command.extend(["-e"])
|
||||||
command.extend(["-d", nio.tap_device])
|
command.extend(["-d", nio.tap_device])
|
||||||
|
|
||||||
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(["-F"]) # option to avoid the daemonization of VPCS
|
|
||||||
|
|
||||||
if self.script_file:
|
if self.script_file:
|
||||||
command.extend([os.path.basename(self.script_file)])
|
command.extend([os.path.basename(self.script_file)])
|
||||||
return command
|
return command
|
||||||
|
Loading…
Reference in New Issue
Block a user