Revision 6ba0093c lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
409 409
        data.write("%s=%s\n" % (k, v))
410 410

  
411 411
    data.write("MAC=%s\n" % nic.mac)
412
    data.write("IP=%s\n" % nic.ip)
412
    if nic.ip:
413
      data.write("IP=%s\n" % nic.ip)
414
    data.write("INTERFACE_INDEX=%s\n" % str(idx))
415
    if nic.name:
416
      data.write("INTERFACE_NAME=%s\n" % nic.name)
417
    data.write("INTERFACE_UUID=%s\n" % nic.uuid)
413 418
    data.write("MODE=%s\n" % nic.nicparams[constants.NIC_MODE])
414 419
    data.write("LINK=%s\n" % nic.nicparams[constants.NIC_LINK])
415 420

  

Also available in: Unified diff