We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405966f commit 147bf53Copy full SHA for 147bf53
roles/netplan/templates/config.yaml.j2
@@ -22,6 +22,21 @@ network:
22
routes:
23
- to: "default"
24
via: "{{ ethernet['gateway4'] }}"
25
+{% if ethernet['routes'] is defined %}
26
+{% for route in ethernet['routes']%}
27
+ - to: "{{ route.to }}"
28
+ via: "{{ route.via }}"
29
+{% endfor %}
30
+{% endif %}
31
32
+{% if ethernet['gateway4'] is not defined %}
33
34
+ routes:
35
36
37
38
39
40
{% endif %}
41
{% if ethernet['addresses'] is defined %}
42
addresses:
0 commit comments