]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: nht only handle if updates if IPV*_IFINDEX nh
authorStephen Worley <sworley@nvidia.com>
Thu, 7 Jan 2021 20:28:28 +0000 (15:28 -0500)
committerStephen Worley <sworley@nvidia.com>
Mon, 1 Feb 2021 18:32:37 +0000 (13:32 -0500)
commite6b00e3fb9d40e33e4d756e5f5ef35b4b4cd07b4
treede48cc356dadcf48f3b459e82f9c90a287767842
parent3d3ed04d39390dc01cdebfc3b6aac523d63b4c5d
pbrd: nht only handle if updates if IPV*_IFINDEX nh

Only handle an interface update in the nexthop tracking code
if the nexthop in question was set with an interface to point
out of. If the nexthop is GW only, the interface update could
be unrelated but have overlapping address space. Let that be
handled elsewhere.

Ex)

```
5.5.5.0/30 dev dummyDoof proto kernel scope link src 5.5.5.1
5.5.5.0/24 dev goofDummy proto kernel scope link src 5.5.5.1
[root@alfred frr-2]# ip ro show table 10000
default via 5.5.5.2 dev dummyDoof proto pbr metric 20
[root@alfred frr-2]# ip link set goofDummy down
[root@alfred frr-2]# ip ro show table 10000
[root@alfred frr-2]# ip link set goofDummy up
[root@alfred frr-2]# ip ro show table 10000

```

Signed-off-by: Stephen Worley <sworley@nvidia.com>
pbrd/pbr_nht.c