Commit 50dc67ab authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Rename 'GenerateTapName' to 'GenerateKvmTapName'

This is an intermediary step before extracting most of the body of
'GenerateTapName' to a separate function that can be reused by the Xen
hypervisor as well.
Signed-off-by: default avatarJose A. Lopes <>
Reviewed-by: default avatarHrvoje Ribicic <>
parent 3f11a477
......@@ -1462,7 +1462,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
raise errors.HypervisorError("Failed to start instance %s" % name)
def _GenerateTapName(nic):
def _GenerateKvmTapName(nic):
"""Generate a TAP network interface name for a NIC.
This helper function generates a special TAP network interface
......@@ -1595,7 +1595,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
for nic_seq, nic in enumerate(kvm_nics):
tapname, tapfd = OpenTap(vnet_hdr=vnet_hdr,
if kvm_supports_netdev:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment