Add mode definition

This commit is contained in:
Yorick Barbanneau 2023-04-07 09:58:00 +02:00
parent 3dbcd5fe73
commit a51226cc78

View file

@ -12,6 +12,11 @@ profile {{ p.profile | default('') }} {
{% if s.status is defined and s.status == 'enable' %} {% if s.status is defined and s.status == 'enable' %}
{{- ' enable' -}} {{- ' enable' -}}
{% endif %} {% endif %}
{% if s.mode is defined %}
{{- ' mode ' ~ s.mode }}
{% elif current['mode'] is defined %}
{{- ' mode ' ~ current['mode'] -}}
{% endif %}
{% if s.position is defined %} {% if s.position is defined %}
{{- ' position ' ~ s.position -}} {{- ' position ' ~ s.position -}}
{% endif %} {% endif %}
@ -24,8 +29,8 @@ profile {{ p.profile | default('') }} {
{% endif %} {% endif %}
{% if s.scale is defined %} {% if s.scale is defined %}
{{- ' scale ' ~ s.scale -}} {{- ' scale ' ~ s.scale -}}
{% elif current['options']['scale'] is defined %} {% elif current['scale'] is defined %}
{{- ' scale ' ~ current['options']['scale'] -}} {{- ' scale ' ~ current['scale'] -}}
{% endif %} {% endif %}
{% endif %} {% endif %}