summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2022-02-02 16:56:30 +0100
committerOlivier Dugeon <olivier.dugeon@orange.com>2022-02-02 17:04:12 +0100
commit62f79ac1296594d43e4350f9d03a308ac2b33fa1 (patch)
tree034fe2e3d48b8bb92b680695933756182c6aec58 /sharpd
parentsharpd: Add call to CSPF (diff)
downloadfrr-62f79ac1296594d43e4350f9d03a308ac2b33fa1.tar.xz
frr-62f79ac1296594d43e4350f9d03a308ac2b33fa1.zip
tests: Add CSPF topotest
Add new topotest for the Constraints ShortestPath First (CSPF) algorithm. This topotest uses IS-IS-TE as base network to populate a Traffic Engineering Database (TED) and sharpd to call cspf algorithms on this IS-IS-TE topology. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_zebra.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 8c9f0c278..313febd9b 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -799,10 +799,12 @@ static int sharp_opaque_handler(ZAPI_CALLBACK_ARGS)
if (info.type == LINK_STATE_UPDATE) {
lse = ls_stream2ted(sg.ted, s, false);
- if (lse)
+ if (lse) {
zlog_debug(" |- Got %s %s from Link State Database",
status2txt[lse->status],
type2txt[lse->type]);
+ lse->status = SYNC;
+ }
else
zlog_debug(
"%s: Error to convert Stream into Link State",