diff --git a/lib/backend.py b/lib/backend.py index cf28d4f2763ab83ead8a410e5027fa2006445819..569a6167d680040252f76e6f1127c0b8431366d7 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2501,11 +2501,6 @@ def OSEnvironment(instance, inst_os, debug=0): if nic.netinfo: nobj = objects.Network.FromDict(nic.netinfo) result.update(nobj.HooksDict("NIC_%d_" % idx)) - elif nic.network: - # FIXME: broken network reference: the instance NIC specifies a network, - # but the relevant network entry was not in the config. This should be - # made impossible. - result["INSTANCE_NIC%d_NETWORK" % idx] = nic.network if constants.HV_NIC_TYPE in instance.hvparams: result["NIC_%d_FRONTEND_TYPE" % idx] = \ instance.hvparams[constants.HV_NIC_TYPE]