123456789101112 |
- #
- # L3 Access VLANs
- #
- protocol direct l3_access {
- {%- for iface in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces')|sort %}
- {%- set config = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces:' ~ iface) %}
- {%- if salt['ffho.re_search']('^vlan(3\d\d|29\d\d)$', iface) or 'l3-access' in config.get ('tags', []) %}
- interface "{{ iface }}";
- {%- endif %}
- {%- endfor %}
- }
|