l3-access.conf 340 B

123456789101112
  1. #
  2. # L3 Access VLANs
  3. #
  4. protocol direct l3_access {
  5. {%- for iface in salt['pillar.get']('node:ifaces')|sort %}
  6. {%- set config = salt['pillar.get']('node:ifaces:' ~ iface) %}
  7. {%- if salt['ffho.re_search']('^vlan(3\d\d|29\d\d)$', iface) or 'l3-access' in config.get ('tags', []) %}
  8. interface "{{ iface }}";
  9. {%- endif %}
  10. {%- endfor %}
  11. }