Revision f1f11cef lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
1018 1018
        nic_str += ", ip=%s" % ip
1019 1019
      if nic.nicparams[constants.NIC_MODE] == constants.NIC_MODE_BRIDGED:
1020 1020
        nic_str += ", bridge=%s" % nic.nicparams[constants.NIC_LINK]
1021
      if nic.nicparams[constants.NIC_MODE] == constants.NIC_MODE_OVS:
1022
        nic_str += ", bridge=%s" % nic.nicparams[constants.NIC_LINK]
1023
        if nic.nicparams[constants.NIC_VLAN]:
1024
          nic_str += "%s" % nic.nicparams[constants.NIC_VLAN]
1021 1025
      if hvp[constants.HV_VIF_SCRIPT]:
1022 1026
        nic_str += ", script=%s" % hvp[constants.HV_VIF_SCRIPT]
1023 1027
      vif_data.append("'%s'" % nic_str)

Also available in: Unified diff