Comment 4 for bug 2045819

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-role-systemd_networkd (master)

Reviewed: https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/903232
Committed: https://opendev.org/openstack/ansible-role-systemd_networkd/commit/70442c5efb34222d0e333422fc469608795c70e4
Submitter: "Zuul (22348)"
Branch: master

commit 70442c5efb34222d0e333422fc469608795c70e4
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri Dec 8 18:47:35 2023 +0100

    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