]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: Handle GATEWAY_IFINDEX nht conflicts
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 11 Sep 2019 18:22:55 +0000 (14:22 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 13 Sep 2019 15:47:27 +0000 (11:47 -0400)
commit8babeb1add39ff1f63b8505bbdd75e75b8783a86
tree305ff5edcce1503561fe8467bcb4e56dd0c7fc69
parent3c5ae0248e375758e389f4adedf038bebafae704
pbrd: Handle GATEWAY_IFINDEX nht conflicts

In pbrd we did not care if the nexthop interface nexthop tracking
sent us back did not match the one specified with `nexthop [GATEWAY]
[INTERFACE]`. This happened if the gateway was resolvable via a
different interface and the inteface we specified in the config was
unnumbered (no ipv4 address on it) since the default route gets forced
onlink when it gets into zebra.

This patch adds a check to not install the rule if the interface we got
back was different from the specified.

This patch also reworks the nexthop update path to make it a little more
clear what its doing.

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