The nova.compute.hv_type
Module¶
Constants and helper APIs for dealing with virtualization types
The constants provide the standard names for all known guest virtualization types. This is not to be confused with the Nova hypervisor driver types, since one driver may support multiple virtualization types and one virtualization type (eg ‘xen’) may be supported by multiple drivers (‘XenAPI’ or ‘Libvirt-Xen’).
-
canonicalize
(name)¶ Canonicalize the hypervisor type name
Parameters: name – hypervisor type name to canonicalize Returns: a canonical hypervisor type name
-
is_valid
(name)¶ Check if a string is a valid hypervisor type
Parameters: name – hypervisor type name to validate Returns: True if @name is valid