]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: allow derived router-id update if previously 0x0
authorDon Slice <dslice@nvidia.com>
Tue, 22 Sep 2020 13:14:52 +0000 (06:14 -0700)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 28 Sep 2020 08:20:33 +0000 (11:20 +0300)
commit3e3b55d5c056e9ce069a6439a58b4ee393ff9a25
tree473d0751d337429a9344c67a5759320e3b486ed5
parent9989855ff662e133abbcc383fd035a5585c3c2e4
bgpd: allow derived router-id update if previously 0x0

Problem found that if a router-id was not defined or derived
initially, the bgp->router_id would be set to 0x0 and used
for determining auto-rd values. When bgp received a subsequent
router-id update from zebra, bgp would not completely process
the update since it was treated as updating an already derived
router-id with a new value, which is not desired.  This also
could leave the auto rd/rt inforamation missing or invalid in
some cases.  This fix allows updating the derived router-id if
the previous value was 0/0.

Ticket: CM-31441
Signed-off-by: Don Slice <dslice@nvidia.com>
bgpd/bgpd.c