Revision 428a794b lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
2054 2054
    utils.EnsureDirs([(self._InstanceNICDir(instance.name),
2055 2055
                     constants.RUN_DIRS_MODE)])
2056 2056
    for nic_seq, tap in enumerate(taps):
2057
      utils.WriteFile(self._InstanceNICFile(instance.name, nic_seq),
2058
                      data=tap)
2057
      nic = kvm_nics[nic_seq]
2058
      self._WriteInstanceNICFiles(instance.name, nic_seq, nic, tap)
2059 2059

  
2060 2060
    if vnc_pwd:
2061 2061
      change_cmd = "change vnc password %s" % vnc_pwd
......
2262 2262
      args = "virtio-net-pci,bus=pci.0,addr=%s,mac=%s,netdev=%s,id=%s" % \
2263 2263
               (hex(device.pci), device.mac, kvm_devid, kvm_devid)
2264 2264
      cmds += ["device_add %s" % args]
2265
      utils.WriteFile(self._InstanceNICFile(instance.name, seq), data=tap)
2265
      self._WriteInstanceNICFiles(instance.name, seq, device, tap)
2266 2266

  
2267 2267
    self._CallHotplugCommands(instance.name, cmds)
2268 2268
    self._VerifyHotplugCommand(instance.name, device, dev_type, True)

Also available in: Unified diff