ospf6d: Make ospfv3 use normal address resolution instead of import route

OSPFv3 recently introduced the usage of import route.  Switch it
back to using the normal ZEBRA_NEXTHOP_REGISTER command.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-09-27 08:23:41 -04:00
parent b8210849b8
commit ad5c8f67a8

View File

@ -145,9 +145,9 @@ void ospf6_zebra_import_default_route(struct ospf6 *ospf6, bool unreg)
prefix.prefixlen = 0; prefix.prefixlen = 0;
if (unreg) if (unreg)
command = ZEBRA_IMPORT_ROUTE_UNREGISTER; command = ZEBRA_NEXTHOP_UNREGISTER;
else else
command = ZEBRA_IMPORT_ROUTE_REGISTER; command = ZEBRA_NEXTHOP_REGISTER;
if (IS_OSPF6_DEBUG_ZEBRA(SEND)) if (IS_OSPF6_DEBUG_ZEBRA(SEND))
zlog_debug("%s: sending cmd %s for %pFX (vrf %u)", __func__, zlog_debug("%s: sending cmd %s for %pFX (vrf %u)", __func__,
@ -721,7 +721,7 @@ void ospf6_zebra_init(struct thread_master *master)
ospf6_zebra_if_address_update_delete; ospf6_zebra_if_address_update_delete;
zclient->redistribute_route_add = ospf6_zebra_read_route; zclient->redistribute_route_add = ospf6_zebra_read_route;
zclient->redistribute_route_del = ospf6_zebra_read_route; zclient->redistribute_route_del = ospf6_zebra_read_route;
zclient->import_check_update = ospf6_zebra_import_check_update; zclient->nexthop_update = ospf6_zebra_import_check_update;
/* Install command element for zebra node. */ /* Install command element for zebra node. */
install_element(VIEW_NODE, &show_ospf6_zebra_cmd); install_element(VIEW_NODE, &show_ospf6_zebra_cmd);