netplan routes config scope link take no effect

Bug #1827774 reported by nie ying ge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
New
Undecided
Unassigned

Bug Description

my ubuntu os version: Ubuntu 18.04.2 LTS
netplan version:
ii netplan.io 0.40.1~18.04.4 amd64

my netplan config:
 cat /etc/netplan/01-netcfg.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
      addresses:
        - 10.10.56.110/21
      nameservers:
          addresses:
            - 10.10.0.1
      routing-policy:
        - from: 10.10.0.0/16
          to: 10.0.0.0/8
          table: 200
          priority: 10001
      routes:
        - to: 10.10.56.0/21
          scope: link
          via: 10.10.63.254
          table: 200
        - to: 0.0.0.0/0
          via: 10.10.63.254
          table: 200
        - to: 10.0.0.0/8
          via: 10.10.63.254

current route table 200:
ip route list table 200
default via 10.10.63.254 dev eno1 proto static

I think it shoud be:
ip route list table 200
default via 10.10.63.254 dev eno1 proto static
10.10.56.0/21 dev eno1 scope link

i know there has bug report of this:
https://bugs.launchpad.net/netplan/+bug/1747455
and i update my netplan to 0.96-0ubuntu0.18.04.4, i downloaded the deb file from https://launchpad.net/ubuntu/+source/netplan.io/0.96-0ubuntu0.18.04.4/+build/16713760/+files/netplan.io_0.96-0ubuntu0.18.04.4_amd64.deb

but it make no difference

Revision history for this message
nie ying ge (giggggle) wrote :

and i can add scope link to route table 200 via ip command:
sudo ip route add 10.10.56.0/21 dev eno1 scope link table 200

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.