]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix aggregate route display
authorChirag Shah <chirag@nvidia.com>
Fri, 19 May 2023 05:43:08 +0000 (22:43 -0700)
committerChirag Shah <chirag@nvidia.com>
Fri, 19 May 2023 21:45:49 +0000 (14:45 -0700)
commitff8bebd2a659551ff33a7ee44f3d329001feb022
tree03445616e2d395ffbdec8dd5a6feb544b265958b
parentcd845be6a7e32d6b65bcf6fda64df03f688a4f54
bgpd: fix aggregate route display

Based on RFC-4760, if NEXT_HOP attribute is not
suppose to be set if MP_REACH_NLRI NLRI is used.
for IPv4 aggregate route only NEXT_HOP attribute
with ipv4 prefixlen needs to be set.

Testing Done:

Before fix:
----------
aggregate route:
*> 184.123.0.0/16   ::(TORC11)               0         32768 i

After fix:
---------
aggregate route:
*> 184.123.0.0/16   0.0.0.0(TORC11)          0         32768 i
* i                 peerlink-3               0    100      0 i
*                   uplink1                                0 4435 5546 i
   184.123.1.0/24   0.0.0.0(TORC11)          0         32768 i
s> 184.123.8.0/22   0.0.0.0(TORC11)          0         32768 i

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_attr.c