mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-25 23:21:45 +03:00
create: Warn about PXE and 'no networking'
This commit is contained in:
parent
33162f20b9
commit
9b26e093e9
@ -974,7 +974,8 @@ class vmmCreate(vmmGObjectUI):
|
||||
ntype = row[0]
|
||||
key = row[6]
|
||||
|
||||
if ntype == virtinst.VirtualNetworkInterface.TYPE_USER:
|
||||
if (ntype == None or
|
||||
ntype == virtinst.VirtualNetworkInterface.TYPE_USER):
|
||||
show_pxe_warn = True
|
||||
elif ntype != virtinst.VirtualNetworkInterface.TYPE_VIRTUAL:
|
||||
show_pxe_warn = False
|
||||
@ -982,7 +983,10 @@ class vmmCreate(vmmGObjectUI):
|
||||
obj = self.conn.get_net(key)
|
||||
show_pxe_warn = not obj.can_pxe()
|
||||
|
||||
self.set_net_warn(show_pxe_warn and pxe_install,
|
||||
if not (show_pxe_warn and pxe_install):
|
||||
return
|
||||
|
||||
self.set_net_warn(True,
|
||||
_("Network selection does not support PXE"), False)
|
||||
|
||||
def hv_changed(self, src):
|
||||
|
Loading…
Reference in New Issue
Block a user