]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: fix detection of inconsistent nexthop groups
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 14 Feb 2019 22:00:15 +0000 (20:00 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 15 Feb 2019 00:57:39 +0000 (22:57 -0200)
commit268c24ee9ee2510d6b4922053285254644609a0f
tree152cb2d779c93cea444d230a934200f8d68d4370
parentaafac994dc97702821563ed05d9513f802438a31
pbrd: fix detection of inconsistent nexthop groups

Commit ff9799c31 broke the detection of nexthop groups that contain
both v4 and v6 nexthops. Move the switch statement back to the
ALL_NEXTHOPS loop to fix this issue.

Further, make pbr_nht_which_afi() return AFI_MAX only if all
nexthops from the group are either NEXTHOP_TYPE_IFINDEX or
NEXTHOP_TYPE_BLACKHOLE.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
pbrd/pbr_nht.c