network: change UseGateway= default to UseRoutes= setting
authorDan Streetman <ddstreet@canonical.com>
Wed, 15 Apr 2020 18:40:21 +0000 (14:40 -0400)
committerMichael Biebl <biebl@debian.org>
Sun, 7 Jun 2020 22:56:37 +0000 (23:56 +0100)
commitd5f8f07e58240ca60cc1166ff67bad6396144ac6
treea82090d20e06ad7741a2aa2903eadc0221116125
parent79197b80298fc91e7efd9d337bc03ad69b40b315
network: change UseGateway= default to UseRoutes= setting

Anyone previously using the UseRoutes=false parameter expected their
dhcp4-provided gateway route to be ignored, as well.  However, with
the introduction of the UseGateway= parameter, this is no longer true.

In order to keep backwards compatibility, this sets the UseGateway=
default value to whatever UseRoutes= has been set to.

(cherry picked from commit 589397a27759bd650b3674029cb0ef73347c913b)

Gbp-Pq: Name network-change-UseGateway-default-to-UseRoutes-setting.patch
man/systemd.network.xml
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h