Restart NPF service after adding vmnet adapters on Windows.

This commit is contained in:
grossmj 2016-03-12 11:04:50 -07:00
parent 04b02171bb
commit c077f3b990

View File

@ -166,6 +166,8 @@ def vmnet_windows(args, vmnet_range_start, vmnet_range_end):
continue
print("Adding vmnet{}...".format(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):