l3-access.conf 385 B

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