]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Do not randomly generate a vrf id for -Z
authorDonald Sharp <sharpd@nvidia.com>
Thu, 2 Sep 2021 00:50:31 +0000 (20:50 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 2 Sep 2021 13:02:55 +0000 (09:02 -0400)
commite7682ccd1b4929a7b2690b2c2f49ec9d4cf18875
treeaa6a272d9844578eb76ce02efffe3db324d6f407
parentc2ad0a0d40ff3860f6e48d2a8b5cb853a97f2543
bgpd: Do not randomly generate a vrf id for -Z

When FRR added the -Z parameter the bgp daemon was setting
a vrf identifier based upon a number starting at 1.  This
caused issues when we upgraded the code to the outgoing
sockets to use vrf_bind always.

FRR should never just randomly select a vrf identifier.
Let's just use VRF_DEFAULT when we are in a -Z environment.
It's a safe bet.

Fixes: #9519
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgpd.c