network: Allow to configure GW even UseRoutes=false
authorSusant Sahani <ssahani@vmware.com>
Sun, 1 Mar 2020 04:12:39 +0000 (05:12 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 1 Mar 2020 16:28:27 +0000 (01:28 +0900)
commitad098b14c5ecb13ea591732d09b3e3869d97ff92
tree41f2924f190c7cd42ffa8e6d739fdcc1c9ec8379
parent161bc525bbd7e3707cc71f0258f663bed9a354dd
network: Allow to configure GW even UseRoutes=false

When use UseRoutes=False so the DHCP request itself does not request
for Classless Static Routes option.
As a result, the DHCP server will only respond with a Router option.
In this case since we are using the UseRoutes=False option the gateway
that comes in via the router option does not get configured.
This patch fixes theis behaviour.
src/network/networkd-dhcp4.c