Closed Levovar closed 4 years ago
Tested with the same example from #228 :
/ # ip r
default via 169.254.1.1 dev eth0
10.10.10.0/24 dev eth1 scope link src 10.10.10.10
10.10.10.0/24 dev eth2 scope link src 10.10.10.20
169.254.1.1 dev eth0 scope link
/ # ip r show table 101
11.11.11.0/24 via 10.10.10.1 dev eth1
12.12.12.0/24 via 10.10.10.1 dev eth1
/ # ip r show table 102
21.21.21.0/24 via 10.10.10.1 dev eth2
22.22.22.0/24 via 10.10.10.1 dev eth2
Entries in route table 101 assigned to eth1 properly.
fixes https://github.com/nokia/danm/issues/228
DANM now sets the link Id into the netlink Route object, making sure the kernel attaches the IP route to the correct device.