mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +00:00
Merge pull request #13065 from rgirada/ospf_abr_summary
This commit is contained in:
commit
173786f6b5
@ -1290,7 +1290,7 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,
|
|||||||
struct in_addr old_id)
|
struct in_addr old_id)
|
||||||
{
|
{
|
||||||
struct ospf_lsa *lsa = NULL;
|
struct ospf_lsa *lsa = NULL;
|
||||||
struct ospf_lsa *new = NULL;
|
struct ospf_lsa *summary_lsa = NULL;
|
||||||
struct summary_lsa *sl = NULL;
|
struct summary_lsa *sl = NULL;
|
||||||
struct ospf_area *old_area = NULL;
|
struct ospf_area *old_area = NULL;
|
||||||
struct ospf *ospf = area->ospf;
|
struct ospf *ospf = area->ospf;
|
||||||
@ -1328,19 +1328,19 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,
|
|||||||
|
|
||||||
if (type == OSPF_SUMMARY_LSA) {
|
if (type == OSPF_SUMMARY_LSA) {
|
||||||
/*Refresh the LSA with new LSA*/
|
/*Refresh the LSA with new LSA*/
|
||||||
ospf_summary_lsa_refresh(ospf, lsa);
|
summary_lsa = ospf_summary_lsa_refresh(ospf, lsa);
|
||||||
|
|
||||||
new = ospf_summary_lsa_prepare_and_flood(
|
ospf_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
|
||||||
&old_prefix, old_metric, old_area, old_id);
|
old_area, old_id);
|
||||||
} else {
|
} else {
|
||||||
/*Refresh the LSA with new LSA*/
|
/*Refresh the LSA with new LSA*/
|
||||||
ospf_summary_asbr_lsa_refresh(ospf, lsa);
|
summary_lsa = ospf_summary_asbr_lsa_refresh(ospf, lsa);
|
||||||
|
|
||||||
new = ospf_asbr_summary_lsa_prepare_and_flood(
|
ospf_asbr_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
|
||||||
&old_prefix, old_metric, old_area, old_id);
|
old_area, old_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new;
|
return summary_lsa;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Originate Summary-LSA. */
|
/* Originate Summary-LSA. */
|
||||||
|
Loading…
Reference in New Issue
Block a user