Code intelligent pour print la version du switch

This commit is contained in:
Antoine Vintache 2018-09-21 00:01:04 +02:00 committed by root
parent 004f9c998b
commit 1aeb14ddc6

View file

@ -1,4 +1,4 @@
; {{ switch.model.reference }}A Configuration Editor; Created on release #{{ switch.model.firmware }}
; {%- if switch.model.reference[-1]=='A' %} {{ switch.model.reference }}{%- else %} {{ switch.model.reference }}A{%- endif %} Configuration Editor; Created on release {%- if switch.model.firmware[0]=='#' %} {{ switch.model.firmware }}{%- else %} #{{ switch.model.firmware }}{%- endif %}
hostname "{{ switch.short_name }}"
; Generated on {{ date_gen }} by re2o