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, 17 May 2020 17:28:49 +0000 (18:28 +0100)
commitbd8933bcd3549c49faf6160d77260046691427c0
treef7e29d904dc2d5fb567db5bc48bb5dd3d99db3b0
parenta7819bc5df37b2f82d7719454ce8bf9197c2d3f5
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