Route not applied in the define order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
I have a configuration file with dependent routes:
network:
version: 2
renderer: networkd
ethernets:
eth0:
- "2001:41d0:
routes:
# Route to gateway
- { to: "2001:41d0:
- { to: "::/0", via: "2001:41d0:
The scope link route must be applied before the gateway route, else adding the gateway route fails with 'No route to host' error.
Unfortunately, it looks like there is a bug in systemd-networkd that make the route applied in reverse order: https:/
If I reverse the route order in the netplan config (and so it is also reversed in systemd generated file), the scope route is properly created before the gateway route.
Should netplan try to generate the routes in reverse order to workaround the systemd bug (maybe it should also be able to detect systemd version to adapt the behavior if it changes in a future systemd release) ?