From 30c0daa4bae1f31429a584a630ab59ff64f67611 Mon Sep 17 00:00:00 2001 From: Jafar Al-Gharaibeh Date: Tue, 1 Aug 2017 13:47:02 -0500 Subject: [PATCH] ospfd: Fix, don't run network unset commands on virtual links Signed-off-by: Jafar Al-Gharaibeh --- ospfd/ospfd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index cee2244dd9..381082fcda 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -976,9 +976,13 @@ int ospf_network_unset(struct ospf *ospf, struct prefix_ipv4 *p, rn->info = NULL; route_unlock_node(rn); /* initial reference */ - /* Find interfaces that not configured already. */ + /* Find interfaces that are not configured already. */ for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi)) { - ospf_network_run_subnet(ospf, oi->connected, NULL, NULL); + + if (oi->type == OSPF_IFTYPE_VIRTUALLINK) + continue; + + ospf_network_run_subnet(ospf, oi->connected, NULL, NULL); } /* Update connected redistribute. */ -- 2.39.5