Extract 'GenerateTapName' to hypervisor base module
authorJose A. Lopes <jabolopes@google.com>
Mon, 7 Apr 2014 15:02:36 +0000 (17:02 +0200)
committerJose A. Lopes <jabolopes@google.com>
Tue, 15 Apr 2014 15:34:37 +0000 (17:34 +0200)
commitbc81cd54e79a754bd7ee5761d1981b08dd108a60
tree1c509e100e8f22f3244c715f3577731d49d0d950
parent50dc67ab63deb2ec3560e88565dc97d3c010c305
Extract 'GenerateTapName' to hypervisor base module

As mentioned, most of the body of the function 'GenerateKvmTapName' is
being extracted to a separate function in the hypervisor base module
so it can be reused by the Xen hypervisor.

Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
lib/hypervisor/hv_base.py
lib/hypervisor/hv_kvm/__init__.py