Merge pull request #10100 from rgirada/ospf_nssa

ospfd: ospf routing table update upon Changing area from normal to nssa
This commit is contained in:
Donald Sharp 2021-11-23 19:52:19 -05:00 committed by GitHub
commit 911b9d7b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,6 +280,19 @@ int ospf_ase_calculate_route(struct ospf *ospf, struct ospf_lsa *lsa)
return 0;
}
/* Type-5 shouldn't be calculated if it is originated from NSSA ASBR.
* As per RFC 3101, expectation is to receive type-7 lsas from
* NSSA ASBR. Ignore calculation, if the current LSA is type-5 and
* originated ASBR's area is NSSA.
*/
if ((lsa->data->type == OSPF_AS_EXTERNAL_LSA)
&& (asbr_route->u.std.external_routing != OSPF_AREA_DEFAULT)) {
if (IS_DEBUG_OSPF(lsa, LSA))
zlog_debug(
"Route[External]: Ignore, If type-5 LSA from NSSA area.");
return 0;
}
/* Else, this LSA describes an AS external path to destination
N. Examine the forwarding address specified in the AS-
external-LSA. This indicates the IP address to which