aboutsummaryrefslogtreecommitdiff
path: root/rumba/model.py
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-10-24 17:00:40 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-10-24 17:03:48 +0200
commitc09a71b756ab3208ac02a006f9a4d54792b803b5 (patch)
tree26e8110a48f1664716db1052cfc887206687da01 /rumba/model.py
parent339c971d13b6411d165f8af2914d459e59383b84 (diff)
downloadrumba-c09a71b756ab3208ac02a006f9a4d54792b803b5.tar.gz
rumba-c09a71b756ab3208ac02a006f9a4d54792b803b5.zip
testbeds: Add support for selecting jfed VMs
Allows setting the attribute machine_type="virtual" for experiment nodes. If the attribute is set to something else than "virtual" a bare metal machine will be selected. If the attribute is not set, the default will be chosen from the jfed testbed. For the wall and cloudlab, the default is physical machines, for the others, it's virtual machines. This default can be overriden by setting the jfed testbed attribute use_physical_machines to True or False.
Diffstat (limited to 'rumba/model.py')
-rw-r--r--rumba/model.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py
index a223fb4..62125a6 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -215,7 +215,7 @@ class SSHConfig:
#
class Node:
def __init__(self, name, difs=None, dif_registrations=None,
- client=False, policies=None):
+ client=False, policies=None, machine_type=None):
self.name = name
if difs is None:
difs = list()
@@ -225,6 +225,7 @@ class Node:
if dif_registrations is None:
dif_registrations = dict()
self.dif_registrations = dif_registrations
+ self.machine_type = machine_type
self.ssh_config = SSHConfig(name)
self.ipcps = []
self.policies = dict()