diff options
| author | Kaushik <kaushiknath.null@gmail.com> | 2021-03-25 08:43:26 -0700 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-06-04 07:23:10 -0300 |
| commit | 35769de430b546e695b647d98946b73373b66e99 (patch) | |
| tree | adc68b1418a23e62880ff86581c8ee0698620a5d /ospf6d/ospf6_route.c | |
| parent | ad500b22b5fc3bc34009b7212c7c3b2f6c4375aa (diff) | |
ospf6d: support for nssa in ospfv3
Fix for the routes which is not classified as best routes.
Signed-off-by: Kaushik <kaushiknath.null@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_route.c')
| -rw-r--r-- | ospf6d/ospf6_route.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index 908011c946..0a026785f4 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -688,6 +688,9 @@ struct ospf6_route *ospf6_route_add(struct ospf6_route *route, if (node->info == old) { node->info = route; SET_FLAG(route->flag, OSPF6_ROUTE_BEST); + if (IS_OSPF6_DEBUG_ROUTE(MEMORY)) + zlog_debug("%s: replace old route %s", + __func__, buf); } if (old->prev) @@ -745,12 +748,12 @@ struct ospf6_route *ospf6_route_add(struct ospf6_route *route, UNSET_FLAG(next->flag, OSPF6_ROUTE_BEST); SET_FLAG(route->flag, OSPF6_ROUTE_BEST); if (IS_OSPF6_DEBUG_ROUTE(MEMORY)) - zlog_info( + zlog_debug( "%s %p: route add %p cost %u: replacing previous best: %p cost %u", ospf6_route_table_name(table), (void *)table, (void *)route, - route->path.cost, - (void *)next, next->path.cost); + route->path.cost, (void *)next, + next->path.cost); } route->installed = now; @@ -876,6 +879,9 @@ void ospf6_route_remove(struct ospf6_route *route, if (route->next && route->next->rnode == node) { node->info = route->next; SET_FLAG(route->next->flag, OSPF6_ROUTE_BEST); + if (IS_OSPF6_DEBUG_ROUTE(MEMORY)) + zlog_debug("%s: remove route %s", __func__, + buf); } else { node->info = NULL; route->rnode = NULL; |
