missing dhcp override for RouteTable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hello,
I'm trying to add out-of-band network management to a system that uses netplan. I'd like the management routes to live in a non-default routing table so they cannot interfere with production interfaces. systemd-networkd's DHCP section supports RouteTable= for this use-case. But there's no corresponding dhcp override option in netplan.
As a workaround, I can add a systemd drop-in at e.g. /etc/systemd/
- it splits the network config into two places, and requires the user to remember when networkd needs a reload before `netplan apply` works as expected.
- the systemd drop-in dir and the files that netplan generates must have matching names. Does netplan consider the file names it generates to be a stable interface?
- similarly, the user must remember that the configuration IDs now provide linkage between netplan's part of the network config and the rest.
- `netplan get` and `netplan status` no longer provide all of the important details, and the user must remember when and how they are incomplete. (or just avoid using them entirely)
- network drop-ins aren't so well-documented or well-supported by systemd (`systemctl edit` and `systemctl cat` don't seem to work on network units, for instance)
So do I understand correctly that you'd need an additional dhcp4/6-overrides setting in Netplan, specifiying the routing table that routes received from DHCP should be installed in?
I think that's a reasonable feature request. Pull requests welcome!
Could you please share the override.conf that you used as a workaround and links to the reference bugs mentioned above? Thanks!