summaryrefslogtreecommitdiff
path: root/roles/vm/guest/network/templates/interfaces/multihomed-base.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-09-05 23:56:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-09-05 23:56:28 +0200
commit0d20c36e23f2435edd3f4f362ae64963ca6bfb6a (patch)
tree12859d4d39220b117fdf3ddc7a5b5d4c3edc086f /roles/vm/guest/network/templates/interfaces/multihomed-base.j2
parentubuntu/installer: add support for desktop installs (diff)
replace some ipaddr() filter calls to new location (still a lot left todo...)
Diffstat (limited to 'roles/vm/guest/network/templates/interfaces/multihomed-base.j2')
-rw-r--r--roles/vm/guest/network/templates/interfaces/multihomed-base.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm/guest/network/templates/interfaces/multihomed-base.j2 b/roles/vm/guest/network/templates/interfaces/multihomed-base.j2
index 3420dcf0..7ee46cd1 100644
--- a/roles/vm/guest/network/templates/interfaces/multihomed-base.j2
+++ b/roles/vm/guest/network/templates/interfaces/multihomed-base.j2
@@ -1,5 +1,5 @@
- address {{ interface.address | ipaddr('address') }}
- netmask {{ interface.address | ipaddr('netmask') }}
+ address {{ interface.address | ansible.utils.ipaddr('address') }}
+ netmask {{ interface.address | ansible.utils.ipaddr('netmask') }}
{% for route in interface.static_routes | default([]) %}
up /bin/ip route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{% if 'table' in route %} table {{ route.table }}{% endif %}{{ '' }}
{% endfor %}