From: Cory Johns Date: Fri, 9 Jun 2017 16:55:13 +0000 (-0400) Subject: Add type info to Model.add_machine docs (#138) X-Git-Tag: 0.5.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=cad065c39e8e69696357f872b55d9c5c8919a0b3;p=osm%2FN2VC.git Add type info to Model.add_machine docs (#138) Resolves #137 --- diff --git a/juju/model.py b/juju/model.py index b97798a..4430dad 100644 --- a/juju/model.py +++ b/juju/model.py @@ -755,14 +755,34 @@ class Model(object): 'zone=us-east-1a' - starts a machine in zone us-east-1s on AWS 'maas2.name' - acquire machine maas2.name on MAAS - :param dict constraints: Machine constraints + :param dict constraints: Machine constraints, which can contain the + the following keys:: + + arch : str + container : str + cores : int + cpu_power : int + instance_type : str + mem : int + root_disk : int + spaces : list(str) + tags : list(str) + virt_type : str + Example:: constraints={ 'mem': 256 * MB, + 'tags': ['virtual'], } - :param list disks: List of disk constraint dictionaries + :param list disks: List of disk constraint dictionaries, which can + contain the following keys:: + + count : int + pool : str + size : int + Example:: disks=[{