mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-24 06:56:42 +00:00
Restart NPF service after adding vmnet adapters on Windows.
This commit is contained in:
parent
04b02171bb
commit
c077f3b990
@ -166,6 +166,8 @@ def vmnet_windows(args, vmnet_range_start, vmnet_range_end):
|
|||||||
continue
|
continue
|
||||||
print("Adding vmnet{}...".format(vmnet_number))
|
print("Adding vmnet{}...".format(vmnet_number))
|
||||||
os.system('"{}" -- add adapter vmnet{}'.format(vnetlib_path, vmnet_number))
|
os.system('"{}" -- add adapter vmnet{}'.format(vnetlib_path, vmnet_number))
|
||||||
|
os.system("net stop npf")
|
||||||
|
os.system("net start npf")
|
||||||
|
|
||||||
|
|
||||||
def vmnet_unix(args, vmnet_range_start, vmnet_range_end):
|
def vmnet_unix(args, vmnet_range_start, vmnet_range_end):
|
||||||
|
Loading…
Reference in New Issue
Block a user