Generation des modules avec re2o dans conf hp

This commit is contained in:
chirac 2019-01-04 11:55:57 +01:00 committed by root
parent d24bb7cc26
commit 6af90e4ff9

View file

@ -2,6 +2,10 @@
hostname "{{ switch.short_name }}" hostname "{{ switch.short_name }}"
; Generated on {{ date_gen }} by re2o ; Generated on {{ date_gen }} by re2o
;--- General ---
{%- for slot, ref in switch.list_modules %}
module {{ slot }} type {{ ref }}
{%- endfor %}
;--- Snmp --- ;--- Snmp ---
{%- if switch.switchbay.name %} {%- if switch.switchbay.name %}
snmp-server location "{{ switch.switchbay.name }}" snmp-server location "{{ switch.switchbay.name }}"