ansible-role-frrouting/templates/vlans.cfg.j2
Dmitriy Rabotyagov b1ed318d22 Add ability to create system vlans
This patch brings possibiltiy to create vlan interfaces,
which later can be used with frrouting

Change-Id: I7bf49496a9075bc6c9b566f60ff76e4afecf6b29
2020-06-24 16:01:38 +03:00

8 lines
266 B
Django/Jinja

auto {{ item['vlan-raw-device'] }}.{{ item.id }}
iface {{ item['vlan-raw-device'] }}.{{ item.id }} inet {{ ('address' in item) | ternary('static', 'manual') }}
{% set _ = item.pop('id') %}
{% for key, value in item.items() %}
{{ key }} {{ value }}
{% endfor %}