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 ('_opts', []) %}
- interface "{{ iface }}";
- {%- endif %}
- {%- endfor %}
- }
|