From c077f3b9905adb0b3320d06d0a0bcaaed44a8229 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 12 Mar 2016 11:04:50 -0700 Subject: [PATCH] Restart NPF service after adding vmnet adapters on Windows. --- utils/vmnet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/vmnet.py b/utils/vmnet.py index 4a279bde..1f437411 100644 --- a/utils/vmnet.py +++ b/utils/vmnet.py @@ -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):