diff options
| author | Russ White <russ@riw.us> | 2019-08-06 08:26:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-06 08:26:54 -0400 |
| commit | 1437a721089d22f587e1b8a8624f607a75f4ca94 (patch) | |
| tree | a47cbbfff6a2011367a82afe693b637d67df72a1 /ospfd/ospf_nsm.c | |
| parent | 6d8b1331f0a80b9572ca3d413a6f453c4678ff9f (diff) | |
| parent | d5eac1e0ca1d067af4e9e261711a37b2025ff612 (diff) | |
Merge pull request #4742 from opensourcerouting/ospfd-default-originate
ospfd: fix & clean up default origination
Diffstat (limited to 'ospfd/ospf_nsm.c')
| -rw-r--r-- | ospfd/ospf_nsm.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c index f7c73fee33..ee27ec0942 100644 --- a/ospfd/ospf_nsm.c +++ b/ospfd/ospf_nsm.c @@ -616,8 +616,6 @@ static void nsm_change_state(struct ospf_neighbor *nbr, int state) struct ospf_interface *oi = nbr->oi; struct ospf_area *vl_area = NULL; uint8_t old_state; - int x; - int force = 1; /* Preserve old status. */ old_state = nbr->state; @@ -664,32 +662,6 @@ static void nsm_change_state(struct ospf_neighbor *nbr, int state) if (oi->type == OSPF_IFTYPE_VIRTUALLINK && vl_area) if (++vl_area->full_vls == 1) ospf_schedule_abr_task(oi->ospf); - - /* kevinm: refresh any redistributions */ - for (x = ZEBRA_ROUTE_SYSTEM; x < ZEBRA_ROUTE_MAX; x++) { - struct list *red_list; - struct listnode *node; - struct ospf_redist *red; - - if (x == ZEBRA_ROUTE_OSPF6) - continue; - - red_list = oi->ospf->redist[x]; - if (!red_list) - continue; - - for (ALL_LIST_ELEMENTS_RO(red_list, node, red)) - ospf_external_lsa_refresh_type( - oi->ospf, x, red->instance, - force); - } - /* XXX: Clearly some thing is wrong with refresh of - * external LSAs - * this added to hack around defaults not refreshing - * after a timer - * jump. - */ - ospf_external_lsa_refresh_default(oi->ospf); } else { oi->full_nbrs--; oi->area->full_nbrs--; |
