netplan interface: dhcp override options.

This commit is contained in:
Andrea Dell'Amico 2023-10-10 11:53:06 +02:00
parent 66e12d354b
commit a40edb9fe3
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 0 deletions

View File

@ -5,5 +5,10 @@ network:
{{ int.name }}: {{ int.name }}:
dhcp4: {{ int.dhcp4 }} dhcp4: {{ int.dhcp4 }}
mtu: {{ int.mtu }} mtu: {{ int.mtu }}
{% if int.dhcp_overrides | default(true) %}
dhcp4-overrides:
use-dns: false
use-routes: false
{% endif %}
{% endfor %} {% endfor %}