From 95346385f0b6e36050c4bc5fa3f00aadc0c5fbcf Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 11 Oct 2014 17:38:13 +0200 Subject: redone http plugs, added support for sfive --- templates/flumotion/default/http-stream.xml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'templates/flumotion') diff --git a/templates/flumotion/default/http-stream.xml b/templates/flumotion/default/http-stream.xml index 3de894a..f9af92e 100644 --- a/templates/flumotion/default/http-stream.xml +++ b/templates/flumotion/default/http-stream.xml @@ -7,18 +7,29 @@ {{ component.feeder }} +%% if component.plugs is defined -%% if component.rrd_dir is defined +%% for name, value in component.plugs.items() +%% if name == 'rrd' -%% if component.rrd_clients is defined - {{ component.rrd_clients }} -%% endif -%% if component.rrd_bytes is defined - {{ component.rrd_bytes }} -%% endif + {{ value.clients }} + {{ value.bytes }} -%% endif +%% endif +%% if name == 'sfive' + +%% for name, value in value.items() +%% if name != 'tags' + {{ value }} +%% else + {{ value|join(', ') }} +%% endif +%% endfor + +%% endif +%% endfor +%% endif %% for name, value in component.properties.items() %% if name != 'samplerate' {{ value }} -- cgit v1.2.3