diff options
author | Vincenzo Maffione <v.maffione@gmail.com> | 2017-03-19 17:07:49 +0100 |
---|---|---|
committer | Vincenzo Maffione <v.maffione@gmail.com> | 2017-03-19 17:07:49 +0100 |
commit | 1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52 (patch) | |
tree | 1ef0cab7072e367b666aba8f260b537fee03a2fc /rumba | |
parent | 8ed85669f0e189b8023acc7cc67866431c0c80f0 (diff) | |
download | rumba-1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52.tar.gz rumba-1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52.zip |
testbeds: placeholder for QEMU testbed
Diffstat (limited to 'rumba')
-rw-r--r-- | rumba/model.py | 2 | ||||
-rw-r--r-- | rumba/testbeds/qemu.py | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py index ddfc959..a043384 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -514,7 +514,7 @@ class Experiment: print("IPCP for node %s: %s" % (node.name, node.ipcps)) - # Examine the nodes and DIFs, compute the registration nd enrollment + # Examine the nodes and DIFs, compute the registration and enrollment # order, the list of IPCPs to create, registrations, ... def generate(self): self.compute_dif_ordering() diff --git a/rumba/testbeds/qemu.py b/rumba/testbeds/qemu.py new file mode 100644 index 0000000..4e767e3 --- /dev/null +++ b/rumba/testbeds/qemu.py @@ -0,0 +1,30 @@ +# +# QEMU testbed for Rumba +# +# Vincenzo Maffione <v.maffione@nextworks.it> +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA + +import rumba.model as mod + +# Fake testbed, useful for testing +class Testbed(mod.Testbed): + def __init__(self, exp_name, username, proj_name = "ARCFIRE", + password = ""): + mod.Testbed.__init__(self, exp_name, username, password, proj_name) + + def create_experiment(self, nodes, links): + print("[QEMU testbed] experiment swapped in") |