From dfc5f5578b8b96e3604c93d92c2bc36b85aa1d2f Mon Sep 17 00:00:00 2001 From: Logan V Date: Sat, 17 Mar 2018 21:44:02 -0500 Subject: [PATCH] Correctly support list of string prefixes systemd_networks: - interface: dummy3 address: - 10.0.2.100/24 - 10.0.3.100/24 Change-Id: If2f08ff70b637090f0ed1091bd40ce090468a51a --- templates/systemd-network.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/systemd-network.j2 b/templates/systemd-network.j2 index 72ebee4..3219464 100644 --- a/templates/systemd-network.j2 +++ b/templates/systemd-network.j2 @@ -31,6 +31,9 @@ Metric={{ 20 + loop.index }} [Network] {% for _addr in _addresses %} +{% if _addr is string %} +{% set _addr = {'address': _addr} %} +{% endif %} {% if _addr.address == 'dhcp' %} DHCP=yes {% else %}