summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-09-11 14:22:55 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-09-13 11:47:27 -0400
commit8babeb1add39ff1f63b8505bbdd75e75b8783a86 (patch)
tree305ff5edcce1503561fe8467bcb4e56dd0c7fc69 /lib/command_graph.c
parent3c5ae0248e375758e389f4adedf038bebafae704 (diff)
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>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions