Merge pull request #7122 from ckishimo/type4

ospfd: do not generate type 4 LSA from NSSA ABR
This commit is contained in:
Russ White 2020-09-22 11:30:06 -04:00 committed by GitHub
commit b4b7ca8944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1162,6 +1162,15 @@ static void ospf_abr_announce_rtr(struct ospf *ospf, struct prefix_ipv4 *p,
if (ospf_abr_nexthops_belong_to_area(or, area))
continue;
/* RFC3101: Do not generate ASBR type 4 LSA if NSSA ABR */
if (or->u.std.external_routing == OSPF_AREA_NSSA) {
if (IS_DEBUG_OSPF_EVENT)
zlog_debug(
"ospf_abr_announce_rtr(): do not generate LSA Type-4 %s from NSSA",
inet_ntoa(p->prefix));
continue;
}
if (area->external_routing != OSPF_AREA_DEFAULT) {
if (IS_DEBUG_OSPF_EVENT)
zlog_debug(