]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: remove routing policy rule from foreign rule database when it is removed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Feb 2019 04:27:44 +0000 (13:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Feb 2019 01:58:09 +0000 (10:58 +0900)
commit92cd00b9749141907a1110044cc7d1f01caff545
treefebe9b60a551ccf0f25324058080dcafac8c540f
parentf3892edd5e9f5b082bc44bc5c3f580a881af6a79
network: remove routing policy rule from foreign rule database when it is removed

Previously, When the first link configures rules, it removes all saved
rules, which were configured by networkd previously, in the foreign rule
database, but the rules themselves are still in the database.
Thus, when the second or later link configures rules, it errnously
treats the rules already exist.
This is the root of issue #11280.

This removes rules from the foreign database when they are removed.

Fixes #11280.
src/network/networkd-routing-policy-rule.c