From a91ea051d9ec98be2162c40aaa8e6c93a55834fc Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Sat, 6 Jul 2024 18:49:03 +0200 Subject: [PATCH] Respect dhcp_use_routes in lxc_container_networks Due to the typo during coversion to systemd_networkd format, dhcp_use_routes are assumed to be added through config_overrides. Intention was to add `UseRoutes` value into [DHCP] section. But instead it adds `DHCP` option under {DEFAULT] section. Change-Id: I75ad2fc575cce7892825fcbacc6c3fb6d2579211 (cherry picked from commit 3a5f7651e9eb297fe3393ad843365032bad33092) --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 6a3f645..4869c63 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -46,7 +46,7 @@ _lxc_container_systemd_networks: | 'mtu': network.mtu | default(), 'static_routes': network.static_routes | default([]), 'usedns': ('dhcp_use_dns' in network) | ternary(network.dhcp_use_dns, lxc_container_enable_resolved | bool), - 'config_overrides': ('dhcp_use_routes' in network) | ternary({'DHCP': network.dhcp_use_routes}, {}) + 'config_overrides': ('dhcp_use_routes' in network) | ternary({'DHCP': {'UseRoutes': network.dhcp_use_routes}}, {}) }) %} {% endfor %} {{ systemd_networks }}