From: Marta Carbone Date: Wed, 3 Sep 2008 17:22:28 +0000 (+0000) Subject: Change the name of the delivered dummynet box image. X-Git-Tag: PLCAPI-dummynet-9~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=13890c250cdb2e25495f7fb801c87ef2a7bdbdd9;p=plcapi.git Change the name of the delivered dummynet box image. --- diff --git a/PLC/Methods/GetDummyBoxMedium.py b/PLC/Methods/GetDummyBoxMedium.py index c33d1366..30308590 100644 --- a/PLC/Methods/GetDummyBoxMedium.py +++ b/PLC/Methods/GetDummyBoxMedium.py @@ -85,11 +85,6 @@ class GetDummyBoxMedium(Method): # Here starts the execution of the call def call(self, auth, dummybox_id): - # set file names - IMAGE_NAME = str(WORK_DIR) + "/dummybox_" + str(dummybox_id) + ".bin" - configfile = WORK_DIR + '/dummybox.conf' - lockfile = WORK_DIR + '/lockfile' - # Check for dummybox existence dummyboxes = DummyBoxes(self.api, [dummybox_id]) if not dummyboxes: @@ -97,6 +92,12 @@ class GetDummyBoxMedium(Method): dummybox = dummyboxes[0] + # Get the dummynet box hostname + dummybox_hostname = dummybox['hostname'] + IMAGE_NAME = str(WORK_DIR) + "/dummybox_" + dummybox_hostname + ".bin" + configfile = WORK_DIR + '/dummybox.conf' + lockfile = WORK_DIR + '/lockfile' + # Permission checks assert self.caller is not None if 'admin' not in self.caller['roles']: