]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Do not force NEXTHOP_TYPE to XXX_IFINDEX
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Jan 2017 12:36:57 +0000 (07:36 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 31 Jan 2017 13:07:27 +0000 (08:07 -0500)
The original goal of the zebra change was to force all:
NEXTHOP_TYPE_IPV4 -> NEXTHOP_TYPE_IPV4_IFINDEX
NEXTHOP_TYPE_IPV6 -> NEXTHOP_TYPE_IPV6_IFINDEX

This causes issues in routes being installed into the kernel
backing this out until I can get time to fully understand
what is going wrong.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_rib.c

index 7faf4c7e0467c94d978cccf7f4dd3616fd2de4a5..c1c1f897a1e1e1ec3758cfde70c0b8f13934aee6 100644 (file)
@@ -471,16 +471,9 @@ nexthop_active (afi_t afi, struct rib *rib, struct nexthop *nexthop, int set,
              newhop = match->nexthop;
              if (newhop)
                {
-                 if (nexthop->type == NEXTHOP_TYPE_IPV4)
-                   {
-                     nexthop->ifindex = newhop->ifindex;
-                     nexthop->type = NEXTHOP_TYPE_IPV4;
-                   }
-                 if (nexthop->type == NEXTHOP_TYPE_IPV6)
-                   {
-                     nexthop->ifindex = newhop->ifindex;
-                     nexthop->type = NEXTHOP_TYPE_IPV6_IFINDEX;
-                   }
+                  if (nexthop->type == NEXTHOP_TYPE_IPV4 ||
+                      nexthop->type == NEXTHOP_TYPE_IPV6)
+                    nexthop->ifindex = newhop->ifindex;
                }
              return 1;
            }