Revision 6f4070cd

b/lib/hypervisor/hv_kvm.py
1515 1515
      else:
1516 1516
        nic_model = nic_type
1517 1517

  
1518
      kvm_supports_netdev = self._NETDEV_RE.search(kvmhelp)
1519

  
1518 1520
      for nic_seq, nic in enumerate(kvm_nics):
1519 1521
        tapname, tapfd = _OpenTap(vnet_hdr)
1520 1522
        tapfds.append(tapfd)
1521 1523
        taps.append(tapname)
1522
        if self._NETDEV_RE.search(kvmhelp):
1524
        if kvm_supports_netdev:
1523 1525
          nic_val = "%s,mac=%s,netdev=netdev%s" % (nic_model, nic.mac, nic_seq)
1524 1526
          tap_val = "type=tap,id=netdev%s,fd=%d%s" % (nic_seq, tapfd, tap_extra)
1525 1527
          kvm_cmd.extend(["-netdev", tap_val, "-device", nic_val])

Also available in: Unified diff