{% if config_get("user.network-config", "") == "" %}version: 1
config:
    - type: physical
      name: {% if instance.type == "virtual-machine" %}{% if instance.architecture == "ppc64le" %}enp0s5{% elif instance.architecture == "s390x" %}enc9{% else %}enp5s0{% endif %}{% else %}eth0{% endif %}
      subnets:
          - type: {% if config_get("user.network_mode", "") == "link-local" %}manual{% else %}dhcp{% endif %}
            control: auto{% else %}{{ config_get("user.network-config", "") }}{% endif %}
