From 6af90e4ff9093084d6411df07cc61fb876461c22 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 4 Jan 2019 11:55:57 +0100 Subject: [PATCH] Generation des modules avec re2o dans conf hp --- templates/hp.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/hp.tpl b/templates/hp.tpl index 8345b92..edf146f 100644 --- a/templates/hp.tpl +++ b/templates/hp.tpl @@ -2,6 +2,10 @@ hostname "{{ switch.short_name }}" ; Generated on {{ date_gen }} by re2o +;--- General --- +{%- for slot, ref in switch.list_modules %} +module {{ slot }} type {{ ref }} +{%- endfor %} ;--- Snmp --- {%- if switch.switchbay.name %} snmp-server location "{{ switch.switchbay.name }}"