mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 09:44:26 +00:00
Merge pull request #10081 from ckishimo/ospf6d_type4
ospf6d: do not originate Type-4 lsa when NSSA
This commit is contained in:
commit
6e3a134e09
@ -394,7 +394,8 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((route->type == OSPF6_DEST_TYPE_ROUTER) && IS_AREA_STUB(area)) {
|
if ((route->type == OSPF6_DEST_TYPE_ROUTER)
|
||||||
|
&& (IS_AREA_STUB(area) || IS_AREA_NSSA(area))) {
|
||||||
if (is_debug)
|
if (is_debug)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"Area has been stubbed, purge Inter-Router LSA");
|
"Area has been stubbed, purge Inter-Router LSA");
|
||||||
@ -447,6 +448,18 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do not generate if area is NSSA */
|
||||||
|
route_area =
|
||||||
|
ospf6_area_lookup(route->path.area_id, area->ospf6);
|
||||||
|
if (IS_AREA_NSSA(route_area)) {
|
||||||
|
if (is_debug)
|
||||||
|
zlog_debug(
|
||||||
|
"%s: The route comes from NSSA area, skip",
|
||||||
|
__func__);
|
||||||
|
ospf6_abr_delete_route(summary, summary_table, old);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Do not generate if the area is stub */
|
/* Do not generate if the area is stub */
|
||||||
/* XXX */
|
/* XXX */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user