network: use NetworkConfigSource/State to manage routing policy rules
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 08:24:07 +0000 (17:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Sep 2021 07:50:23 +0000 (16:50 +0900)
commiteb72fa3ad2aad436e3201327573daba3c5f17b2a
tree2d31bb1907fdd11ebd47931eea58fd71da2ec5d9
parent193c4af94bd9d4fb83b5a6500fb565bbc42bba4e
network: use NetworkConfigSource/State to manage routing policy rules

This also changes the logic when Priority= is not specified.
Previously, we request without FRA_PRIORITY attribute and kernel picks
the highest unused priority for the rule.
This makes networkd picks the highest unused priority and always request
FRA_PRIORITY attribute.
src/network/networkd-manager.c
src/network/networkd-manager.h
src/network/networkd-routing-policy-rule.c
src/network/networkd-routing-policy-rule.h