summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ext.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2018-01-30 16:17:54 +0100
committerOlivier Dugeon <olivier.dugeon@orange.com>2018-01-30 16:17:54 +0100
commit62c9979094a6e3a809aceeae2a97d34bf5645615 (patch)
tree88a4b5494729b9619ecf104a9c2bcf4da0c83ff9 /ospfd/ospf_ext.c
parentOSPFd: Remove unecessary debug message (diff)
downloadfrr-62c9979094a6e3a809aceeae2a97d34bf5645615.tar.xz
frr-62c9979094a6e3a809aceeae2a97d34bf5645615.zip
OSPFd: Clean up Segment Routing patch
- ospfd/ospf_te.c: Remove unregister function and call to ospf_delete_opaque_functab() following the introduction of ospf_opaque_term() function in ospfd.c for ospfd termination. - ospfd/ospf_sr.c: Set initial index value for node-msd CLI to avaoid crash when using this command - ospfd/ospf_ext.c: Disable call to ospf_sr_update_prefix() if Segment Routing, thus Extended Link/Prefix, is not enable - ospfd/ospf_opaque.c: Correct scheduling of Opaque LSA flooding Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r--ospfd/ospf_ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c
index 90a48cc7a..474f173cb 100644
--- a/ospfd/ospf_ext.c
+++ b/ospfd/ospf_ext.c
@@ -622,7 +622,8 @@ static void ospf_ext_pref_ism_change(struct ospf_interface *oi, int old_status)
oi->ifp->name);
/* Complete SRDB if the interface belongs to a Prefix */
- ospf_sr_update_prefix(oi->ifp, oi->address);
+ if (OspfEXT.enabled)
+ ospf_sr_update_prefix(oi->ifp, oi->address);
}
}