summaryrefslogtreecommitdiff
path: root/templates/flumotion
diff options
context:
space:
mode:
Diffstat (limited to 'templates/flumotion')
-rw-r--r--templates/flumotion/default/http-stream.xml6
-rw-r--r--templates/flumotion/default/http2-stream.xml8
2 files changed, 12 insertions, 2 deletions
diff --git a/templates/flumotion/default/http-stream.xml b/templates/flumotion/default/http-stream.xml
index 561097a..3de894a 100644
--- a/templates/flumotion/default/http-stream.xml
+++ b/templates/flumotion/default/http-stream.xml
@@ -8,10 +8,16 @@
<feed alias="default">{{ component.feeder }}</feed>
</eater>
<plugs>
+%% if component.rrd_dir is defined
<plug socket="flumotion.component.plugs.rrd.ComponentRRDPlug" type="component-rrd">
+%% if component.rrd_clients is defined
<property name="clients-connected-file">{{ component.rrd_clients }}</property>
+%% endif
+%% if component.rrd_bytes is defined
<property name="bytes-transferred-file">{{ component.rrd_bytes }}</property>
+%% endif
</plug>
+%% endif
</plugs>
%% for name, value in component.properties.items()
%% if name != 'samplerate'
diff --git a/templates/flumotion/default/http2-stream.xml b/templates/flumotion/default/http2-stream.xml
index 74c881e..6e1e100 100644
--- a/templates/flumotion/default/http2-stream.xml
+++ b/templates/flumotion/default/http2-stream.xml
@@ -19,12 +19,16 @@
<eater name="default">
<feed alias="default">{{ '%s_rep' % (name) }}</feed>
</eater>
- <plugs>
+%% if component.rrd_dir is defined
<plug socket="flumotion.component.plugs.rrd.ComponentRRDPlug" type="component-rrd">
+%% if component.rrd_clients is defined
<property name="clients-connected-file">{{ component.rrd_clients }}</property>
+%% endif
+%% if component.rrd_bytes is defined
<property name="bytes-transferred-file">{{ component.rrd_bytes }}</property>
+%% endif
</plug>
- </plugs>
+%% endif
%% for name, value in component.properties.items()
%% if name != 'samplerate'
<property name="{{ name }}">{{ value }}</property>