nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.27k stars 132 forks source link

make setup/turnoff of tap devices optional #1319

Open wjhun opened 2 years ago

wjhun commented 2 years ago

In ops/cmd/run_local_instance.go, network.SetupNetworkInterfaces() and network.TurnOffNetworkInterfaces() are called unconditionally if a tap device is specified. This is convenient behavior when the user does not already have bridge and tap devices configured, but an inconvenience if the user has such devices configured and wishes them to be persistent across invocations of ops. Adding a flag to disable all network device configuration (or disable it by default) would help in these cases.