diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-01-27 19:36:01 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-03-26 10:48:15 -0400 |
| commit | 497ff5792f6a27702bf4ee33b79e1a80ffcf0a09 (patch) | |
| tree | f01926c2a6c06453f25db3a0e83a6f6e0368ed04 /lib/command.c | |
| parent | b37bbdbc8107abeb988939ab79b3d4f68adf9981 (diff) | |
zebra: handle NHG in NHG dataplane group conversion
We were not properly handling the case of a NHG inside of
another NHG when converting the rb tree of a multilevel NHG
into a flat list of IDs. When constructing, we call the function
zebra_nhg_nhe2grp_internal() recursively so that the rare
case of a group within a group is handled such that its
singleton nexthops are appended to the grp array of IDs
we send to the dataplane code.
Ex)
1:
-> 2:
-> 3
-> 4
->5:
->6
becomes this:
1:
->3
->4
->6
when its sent to the dataplane code for final kernel installation.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
