~yolanda.robla/nova/precise-security

« back to all changes in this revision

Viewing changes to nova/compute/instance_types.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-02 10:56:30 UTC
  • mto: (79.1.1 precise-proposed)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: package-import@ubuntu.com-20111202105630-tjly1gpmdh533s0q
Tags: upstream-2012.1~e2~20111202.11641
ImportĀ upstreamĀ versionĀ 2012.1~e2~20111202.11641

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
 
33
33
def create(name, memory, vcpus, local_gb, flavorid, swap=0,
34
 
           rxtx_quota=0, rxtx_cap=0):
 
34
           rxtx_factor=1):
35
35
    """Creates instance types."""
36
36
    kwargs = {
37
37
        'memory_mb': memory,
38
38
        'vcpus': vcpus,
39
39
        'local_gb': local_gb,
40
40
        'swap': swap,
41
 
        'rxtx_quota': rxtx_quota,
42
 
        'rxtx_cap': rxtx_cap,
 
41
        'rxtx_factor': rxtx_factor,
43
42
    }
44
43
 
45
44
    # ensure some attributes are integers and greater than or equal to 0