]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix attribute handling upon redistribution metric change
authorvivek <vivek@cumulusnetworks.com>
Tue, 26 Jul 2016 17:45:51 +0000 (10:45 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 26 Jul 2016 17:45:51 +0000 (10:45 -0700)
commit711093b5ebfd059f433396e4bca98216e02482fb
tree043fe0d877d921e97d2a634d34802524943c1736
parent598a479fb34f837b76a29fb3560da2dcbcd3de12
bgpd: Fix attribute handling upon redistribution metric change

When the metric for a redistributed route is changed through configuration,
the path attribute for the route/routes need to be "re-created" as the hash
entry would change. In the absence of this, the entry would have the correct
values but when a hash lookup is done at a later time (e.g., when trying to
free the entry), it would fail. This patch addresses the "re-creation"

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11168
Reviewed By: CCR-4990
Testing Done: Manual, bgp-smoke
bgpd/bgp_zebra.c