summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-07-10 16:54:59 +0200
committerGitHub <noreply@github.com>2020-07-10 16:54:59 +0200
commit373edbbc9975f2ebeae7d019eb386f48b53d2696 (patch)
treee0608f138ac01dc9d09557ea1123b8ffd40899a0 /sharpd
parentMerge pull request #6403 from NaveenThanikachalam/FRR_RMAP_FIX (diff)
parentzebra: clean up the code flow in lsp results processing (diff)
downloadfrr-373edbbc9975f2ebeae7d019eb386f48b53d2696.tar.xz
frr-373edbbc9975f2ebeae7d019eb386f48b53d2696.zip
Merge pull request #6530 from mjstapp/backup_nhg_notify
lib, zebra: async notifications for backup routes and LSPs
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_zebra.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index c47f2105c..7ab2d6ec2 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -435,6 +435,12 @@ static int sharp_debug_nexthops(struct zapi_route *api)
int i;
char buf[PREFIX_STRLEN];
+ if (api->nexthop_num == 0) {
+ zlog_debug(
+ " Not installed");
+ return 0;
+ }
+
for (i = 0; i < api->nexthop_num; i++) {
struct zapi_nexthop *znh = &api->nexthops[i];