Description of problem:
systemd-networkd ignores UseRoutes=false in [DHCP] of .network file, this
is upstream bug report https://github.com/systemd/systemd/issues/2282
Version-Release number of selected component (if applicable):
$ cat /etc/systemd/network/wired.network
Even "UseRoutes=false" is set, there is still the default route from DHCP.
systemd-networkd ignores UseRoutes=false in [DHCP] of .network file.
systemd-networkd properly handles UseRoutes=false in [DHCP] of .network file.
Upstream patch is https://github.com/systemd/systemd/pull/3075
systemd-networkd is shipped in the optional channel and is not supported. However, the fix is trivial and I'd say we could fix this as OtherQA or maybe even SanityOnly.
Created attachment 1520395 [details]
Initially mentioned patch solves the issue (tested), but to make really sense, the following patches should be IMHO included as well:
The result is this patch suggestion.
Filed case #02290894 at the Red Hat customer portal.
Testing packages can be found at http://people.redhat.com/~jsynacek/systemd/bz1663365-dhcp-useroutes/.
(In reply to Jan Synacek from comment #7)
Most of the packages there have a size of zero bytes, feels like a broken upload.
(In reply to Robert Scheck from comment #8)
> (In reply to Jan Synacek from comment #7)
> > https://github.com/lnykryn/systemd-rhel/pull/270
> Most of the packages there have a size of zero bytes, feels like a broken
Yes, Robert seems so that's why couldn't able to upload the rest of the files with the case.
I didn't realize that the quota was so low and in truncated the rest of my upload. I've rebuilt and reuploaded the packages.
Please, try again. The packages are there now.
(In reply to Jan Synacek from comment #10)
> Please, try again. The packages are there now.
Thanks; systemd-networkd-219-63.el7.bz1663365_dhcp_useroutes.x86_64.rpm works here as expected.
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/270 -> post
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.