Skip to content

Commit

Permalink
Allow setting virt-bridge to "none" to disable all network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Mar 8, 2024
1 parent 0cc3984 commit 0fb6b40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion koan/virtinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ def build_commandline(
cmd += "--disk path=%s,device=floppy " % floppy

for bridge, mac in nics:
cmd += "--network bridge=%s" % bridge
if bridge == 'none':
cmd += "--network none"
else:
cmd += "--network bridge=%s" % bridge
if net_model and not disable_net_model:
cmd += ",model=%s" % net_model
if mac:
Expand Down

0 comments on commit 0fb6b40

Please sign in to comment.