ansible-role-systemd_networkd/templates
Dmitriy Rabotyagov a05e610cc5 Fix defenition of multiple static routes for network
Current logic was relying on iteration inside the template. However,
since config_template module was used to deliver network configuration
it was merging sections having same name together.

While this behaviour is correct one for config_template as all sections
must be unique from ConfigParser perspective and in order to apply
overrides properly, it was not suiting the way how routes should be
defined in networkd configuration.

To workaround the issue we place routes separately under <network>.d
directory, which should be supported by systemd [1]

[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html

Closes-Bug: #2045819
Change-Id: I01aa44dcdc85e32d18dd52bcd4878a9017fb6ead
(cherry picked from commit 70442c5efb)
2023-12-15 15:07:16 +01:00
..
systemd-link.j2 Move link options to a link file 2018-12-27 21:31:16 -06:00
systemd-netdev.j2 Allow networkd filename override 2018-03-19 14:54:35 -05:00
systemd-network-routes.j2 Fix defenition of multiple static routes for network 2023-12-15 15:07:16 +01:00
systemd-network.j2 Fix defenition of multiple static routes for network 2023-12-15 15:07:16 +01:00
systemd-resolved.conf.j2 Add resolved to the networkd setup 2018-05-10 14:13:27 -05:00