systemd-link.tmpl 248 B

123456789101112131415
  1. {%- set mac = iface_config.get ('mac') -%}
  2. {%- set driver = iface_config.get ('driver') -%}
  3. #
  4. # {{ interface }} / {{ desc }}
  5. #
  6. [Match]
  7. MACAddress={{ mac }}
  8. {%- if driver %}
  9. Driver={{ driver }}
  10. {%- endif %}
  11. [Link]
  12. NamePolicy=
  13. Name={{ interface }}