X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fccn%2Fccncat.py;h=f5eb2690a17203171fc82736a0f842de0c450e0f;hb=392caf57c8567c7198321f1414aee43ee31d1e42;hp=c721c331110d0794969ade87728b551643752be1;hpb=a31058106dd30dd38446381226477e02670b3d1b;p=nepi.git diff --git a/src/nepi/resources/linux/ccn/ccncat.py b/src/nepi/resources/linux/ccn/ccncat.py index c721c331..f5eb2690 100644 --- a/src/nepi/resources/linux/ccn/ccncat.py +++ b/src/nepi/resources/linux/ccn/ccncat.py @@ -34,7 +34,12 @@ class LinuxCCNCat(LinuxCCNApplication): "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) @@ -48,7 +53,10 @@ class LinuxCCNCat(LinuxCCNApplication): 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)