network: introduce ManageForeignRoutingPolicyRules= boolean setting in networkd.conf
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Apr 2021 12:33:51 +0000 (21:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Apr 2021 03:22:42 +0000 (12:22 +0900)
commitd94dfe7053d49fa62c4bfc07b7f3fc2227c10aff
tree8e248de8d8d90f9889804615a602bcdca98d8e28
parent6bfadad9bb6eaf614da92eba0a9b6243e8645018
network: introduce ManageForeignRoutingPolicyRules= boolean setting in networkd.conf

The commit 0b81225e5791f660506f7db0ab88078cf296b771 makes that networkd
remove all foreign rules except those with "proto kernel".

But, in some situation, people may want to manage routing policy rules
with other tools, e.g. 'ip' command. To support such the situation,
this introduce ManageForeignRoutingPolicyRules= boolean setting.

Closes #19106.
man/networkd.conf.xml
src/network/networkd-gperf.gperf
src/network/networkd-manager.c
src/network/networkd-manager.h
src/network/networkd-routing-policy-rule.c
src/network/networkd.conf