mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-27 14:03:57 +03:00
virt-install: report an error for pxe install without network
Fix a regression where we used to report an error message if user specified pxe installation without any network (--nonetworks or --network none). Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1250382 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
76d6c5b597
commit
aebebbf879
@ -746,8 +746,8 @@ c.add_valid("--mac 22:22:33:44:55:AF") # Just a macaddr
|
||||
c.add_valid("--bridge mybr0 --mac 22:22:33:44:55:AF") # Old bridge w/ mac
|
||||
c.add_valid("--network bridge:mybr0,model=e1000") # --network bridge:
|
||||
c.add_valid("--network network:default --mac RANDOM") # VirtualNetwork with a random macaddr
|
||||
c.add_valid("--nonetworks") # no networks
|
||||
c.add_valid("--vnc --keymap=local") # --keymap local
|
||||
c.add_invalid("--nonetworks") # no networks
|
||||
c.add_invalid("--graphics vnc --vnclisten 1.2.3.4") # mixing old and new
|
||||
c.add_invalid("--network=FOO") # Nonexistent network
|
||||
c.add_invalid("--mac 1234") # Invalid mac
|
||||
|
@ -226,6 +226,9 @@ def convert_old_networks(options):
|
||||
fail(_("Cannot use --nonetworks with --network"))
|
||||
options.network = ["none"]
|
||||
|
||||
if options.pxe and options.network and "none" in options.network:
|
||||
fail(_("Can't use --pxe without any network"))
|
||||
|
||||
macs = virtinst.util.listify(options.mac)
|
||||
networks = virtinst.util.listify(options.network)
|
||||
bridges = virtinst.util.listify(options.bridge)
|
||||
|
Loading…
x
Reference in New Issue
Block a user