I've tested netplan.io 0.103-0ubuntu7.1 from impish-proposed and attached the autopkgtest logs to the bug description, according to https://wiki.ubuntu.com/NetplanUpdates.
The netplan generator command was run successfully, producing correct "scope: link" routes with empty gateway/next_hop:
root@sru-ii:~# dpkg -l | grep netplan
ii libnetplan0:amd64 0.103-0ubuntu7.1 amd64 YAML network configuration abstraction runtime library
ii netplan.io 0.103-0ubuntu7.1 amd64 YAML network configuration abstraction for various backends
root@sru-ii:~# mkdir -p tmp/etc/netplan
root@sru-ii:~# cat tmp/etc/netplan/test.yaml
network:
renderer: NetworkManager
ethernets:
eth0:
addresses: [1.2.3.4/24, fe20::3/16]
routes:
- to: 2.2.2.2/7
scope: link
- to: 3.3.3.3/6
scope: link
metric: 4
- to: 4:5:6:7:8:9:0:1/63
scope: link
metric: 5root@sru-ii:~# /usr/lib/netplan/generate -r tmp/
root@sru-ii:~# cat tmp/run/NetworkManager/system-connections/netplan-eth0.nmconnection | grep "route.="
route1=2.2.2.2/7
route2=3.3.3.3/6,,4
route1=4:5:6:7:8:9:0:1/63,,5
I've tested netplan.io 0.103-0ubuntu7.1 from impish-proposed and attached the autopkgtest logs to the bug description, according to https:/ /wiki.ubuntu. com/NetplanUpda tes.
The netplan generator command was run successfully, producing correct "scope: link" routes with empty gateway/next_hop:
root@sru-ii:~# dpkg -l | grep netplan
ii libnetplan0:amd64 0.103-0ubuntu7.1 amd64 YAML network configuration abstraction runtime library
ii netplan.io 0.103-0ubuntu7.1 amd64 YAML network configuration abstraction for various backends
root@sru-ii:~# mkdir -p tmp/etc/netplan netplan/ test.yaml netplan/ generate -r tmp/ NetworkManager/ system- connections/ netplan- eth0.nmconnecti on | grep "route.=" 4:5:6:7: 8:9:0:1/ 63,,5
root@sru-ii:~# cat tmp/etc/
network:
renderer: NetworkManager
ethernets:
eth0:
addresses: [1.2.3.4/24, fe20::3/16]
routes:
- to: 2.2.2.2/7
scope: link
- to: 3.3.3.3/6
scope: link
metric: 4
- to: 4:5:6:7:8:9:0:1/63
scope: link
metric: 5root@sru-ii:~# /usr/lib/
root@sru-ii:~# cat tmp/run/
route1=2.2.2.2/7
route2=3.3.3.3/6,,4
route1=