From c09a71b756ab3208ac02a006f9a4d54792b803b5 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 24 Oct 2017 17:00:40 +0200 Subject: 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. --- rumba/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rumba/model.py') 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() -- cgit v1.2.3