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 <jabolopes@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 3f11a477
......@@ -1462,7 +1462,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
raise errors.HypervisorError("Failed to start instance %s" % name)
@staticmethod
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,
name=self._GenerateTapName(nic))
name=self._GenerateKvmTapName(nic))
tapfds.append(tapfd)
taps.append(tapname)
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