diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-02-15 13:18:48 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:36 -0400 |
| commit | a95b8020ca4383dd4a43c18588c004b5683a8566 (patch) | |
| tree | 4e1ad20aac2a9041994f16eb1b9a8c54721ae14f /zebra/zebra_router.h | |
| parent | d2bec88a36effcff8d91375b325a944dad36b5e4 (diff) | |
zebra: Add a second table for indexing by ID
The messages we get from the kernel come with ids only
for groups, so lets index with those as well. Also adding
a helper function for lookup and get with the two different
tables.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_router.h')
| -rw-r--r-- | zebra/zebra_router.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h index 4bae701d2f..cdf8fbe9e8 100644 --- a/zebra/zebra_router.h +++ b/zebra/zebra_router.h @@ -137,6 +137,7 @@ struct zebra_router { * The hash of nexthop groups associated with this router */ struct hash *nhgs; + struct hash *nhgs_id; }; #define GRACEFUL_RESTART_TIME 60 |
