git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing up DCE
[nepi.git]
/
src
/
nepi
/
resources
/
linux
/
ccn
/
ccncat.py
diff --git
a/src/nepi/resources/linux/ccn/ccncat.py
b/src/nepi/resources/linux/ccn/ccncat.py
index
c721c33
..
f5eb269
100644
(file)
--- 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)
"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(content_name)
+ cls._register_attribute(pipeline)
def __init__(self, ec, guid):
super(LinuxCCNCat, self).__init__(ec, guid)
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")
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)
self.info("Deploying command '%s' " % command)