mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Get Windows interfaces for VMware support.
This commit is contained in:
parent
3ed95148b2
commit
731d24f497
@ -32,6 +32,7 @@ import signal
|
||||
from gns3server.utils.asyncio import wait_for_process_termination
|
||||
from gns3server.utils.asyncio import monitor_process
|
||||
from gns3server.utils.telnet_server import TelnetServer
|
||||
from gns3server.utils.interfaces import get_windows_interfaces
|
||||
from collections import OrderedDict
|
||||
from .vmware_error import VMwareError
|
||||
from ..nios.nio_udp import NIOUDP
|
||||
@ -283,7 +284,7 @@ class VMwareVM(BaseVM):
|
||||
if sys.platform.startswith("linux"):
|
||||
config[bridge_name] = {"source_linux_raw": vmnet_interface}
|
||||
elif sys.platform.startswith("win"):
|
||||
windows_interfaces = self.manager.get_vmnet_interfaces()
|
||||
windows_interfaces = get_windows_interfaces()
|
||||
npf = None
|
||||
for interface in windows_interfaces:
|
||||
if "netcard" in interface and vmnet_interface in interface["netcard"]:
|
||||
|
Loading…
Reference in New Issue
Block a user