route with link scope must not required a via parameter
Bug #1777681 reported by
Jean-Daniel Dupas
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm trying to define a route to a single host via a link.
This can be done either using 'ip'
ip route add 192.168.0.1/32 dev enp1s0
or using systemd unit:
[Route]
Destination=
Scope=link
but when I try to define such route in netplan:
- { to: 192.168.0.1/32, scope: link }
it fails with the error:
'Error in network definition //etc/netplan/
To post a comment you must log in.
Workaround: use "via: 0.0.0.0"