]> git.proxmox.com Git - mirror_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)
committerDon Slice <dslice@nvidia.com>
Thu, 24 Sep 2020 15:31:33 +0000 (08:31 -0700)
commit3c2a1ad1f0a7b8a29b944ce28c4e06d350aaf79f
tree82d1e792e7e37b43bf4e580678554a46c96d44c5
parentccda0eadac743dd4e9b02d6c28b226ef6e8f90b3
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