raise RuntimeError, msg
store_dir = self.get("storeDir")
- self._store_path = os.path.join(store_dir, self.ec.exp_id, self.ec.run_id)
+ self._store_path = os.path.join(store_dir, self.ec.run_id)
subdir = self.get("subDir")
if subdir:
"Content name for the content to peek",
flags = Flags.Design)
+ pipeline = Attribute("pipeline",
+ "CCNCat pipeline",
+ flags = Flags.Design)
+
cls._register_attribute(content_name)
+ cls._register_attribute(pipeline)
def __init__(self, ec, guid):
super(LinuxCCNCat, self).__init__(ec, guid)
command = self.get("command")
if not command:
command = "ccncat %s" % self.get("contentName")
- self.set("command", command)
+ if self.get("pipeline"):
+ command += " -p %s " % self.get("pipeline")
+
+ self.set("command", command)
self.info("Deploying command '%s' " % command)
with self.dce_application_lock:
pid = self.simulation.invoke(self.dce_application_helper_uuid,
"GetPid", self.uuid)
+
node_id = self.simulation.invoke(self.node.uuid, "GetId")
self._trace_filename["stdout"] = "files-%s/var/log/%s/stdout" % (node_id, pid)
self._trace_filename["stderr"] = "files-%s/var/log/%s/stderr" % (node_id, pid)
ec.set(node, "hostname", self.fedora_host)
ec.set(node, "username", self.fedora_user)
ec.set(node, "identity", self.fedora_identity)
- ec.set(node, "cleanProcesses", True)
- ec.set(node, "cleanHome", True)
+ #ec.set(node, "cleanProcesses", True)
+ #ec.set(node, "cleanHome", True)
simu = ec.register_resource("LinuxNS3Simulation")
ec.set(simu, "verbose", True)