Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
±EYc@s_dZddlmZdZdZdZdZeeeegZd„Zd„Z	d	„Z
d
S(s‘Possible vm modes for instances.

Compute instance vm modes represent the host/guest ABI used for the
virtual machine / container. Individual hypervisors may support
multiple different vm modes per host. Available vm modes for a hypervisor
driver may also vary according to the architecture it is running on.

The 'vm_mode' parameter can be set against an instance to
choose what sort of VM to boot.

iÿÿÿÿ(t	exceptionthvmtxentumltexecCs|j}t|ƒS(s‰Get the vm mode for an instance

    :param instance: instance object to query

    :returns: canonicalized vm mode for the instance
    (tvm_modetcanonicalize(tinstancetmode((sI/home/tvault/.virtenv/lib/python2.7/site-packages/nova/compute/vm_mode.pytget_from_instance&s	cCs
|tkS(szCheck if a string is a valid vm mode

    :param name: vm mode name to validate

    :returns: True if @name is valid
    (tALL(tname((sI/home/tvault/.virtenv/lib/python2.7/site-packages/nova/compute/vm_mode.pytis_valid2scCs€|dkrdS|jƒ}|dkr1t}n|dkrFt}n|dkr[t}nt|ƒs|tjd|ƒ‚n|S(stCanonicalize the vm mode

    :param name: vm mode name to canonicalize

    :returns: a canonical vm mode name
    tpvthvt	baremetaltvmmodeN(tNonetlowertXENtHVMRRtInvalidVirtualMachineMode(R((sI/home/tvault/.virtenv/lib/python2.7/site-packages/nova/compute/vm_mode.pyR=s			N(t__doc__tnovaRRRtUMLtEXER
R	RR(((sI/home/tvault/.virtenv/lib/python2.7/site-packages/nova/compute/vm_mode.pyt<module>s