diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-07-10 16:54:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 16:54:59 +0200 |
commit | 373edbbc9975f2ebeae7d019eb386f48b53d2696 (patch) | |
tree | e0608f138ac01dc9d09557ea1123b8ffd40899a0 /sharpd | |
parent | Merge pull request #6403 from NaveenThanikachalam/FRR_RMAP_FIX (diff) | |
parent | zebra: clean up the code flow in lsp results processing (diff) | |
download | frr-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.c | 6 |
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]; |