diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 23:56:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-05 23:56:28 +0200 |
commit | 0d20c36e23f2435edd3f4f362ae64963ca6bfb6a (patch) | |
tree | 12859d4d39220b117fdf3ddc7a5b5d4c3edc086f /roles/vm/guest/network/templates/interfaces/overlay.j2 | |
parent | ubuntu/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/overlay.j2')
-rw-r--r-- | roles/vm/guest/network/templates/interfaces/overlay.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm/guest/network/templates/interfaces/overlay.j2 b/roles/vm/guest/network/templates/interfaces/overlay.j2 index b2ef11a9..b678150a 100644 --- a/roles/vm/guest/network/templates/interfaces/overlay.j2 +++ b/roles/vm/guest/network/templates/interfaces/overlay.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') }} up /bin/ip addr add dev $IFACE {{ interface.overlay }}/32 {% 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 %}{{ '' }} |