diff options
-rw-r--r-- | rumba/testbeds/jfed.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/rumba/testbeds/jfed.py b/rumba/testbeds/jfed.py index a99a077..f40cb06 100644 --- a/rumba/testbeds/jfed.py +++ b/rumba/testbeds/jfed.py @@ -47,7 +47,7 @@ class Testbed(mod.Testbed): def __init__(self, exp_name, username, cert_file, exp_hours="2", proj_name="ARCFIRE", authority="wall2.ilabt.iminds.be", - image=None): + image=None, image_custom=False, image_owner=None): passwd = getpass.getpass(prompt="Password for certificate file: ") mod.Testbed.__init__(self, exp_name, @@ -65,8 +65,18 @@ class Testbed(mod.Testbed): self.jfed_jar = os.path.join(mod.cache_dir, 'jfed_cli/experimenter-cli.jar') if image is not None: + if image_owner is None: + if not image_custom: + image_owner = "emulab-ops" + else: + if authority == "wall1.ilabt.iminds.be": + image_owner = "wall2-ilabt-iminds-be" + elif authority == "wall2.ilabt.iminds.be": + image_owner = "wall2-ilabt-iminds-be" + else: + image_owner = "GeniSlices" self.image = "urn:publicid:IDN+" + authority + \ - "+image+wall2-ilabt-iminds-be:" + image + "+image+" + image_owner + ":" + image else: self.image = None |