]> git.puffer.fish Git - matthieu/frr.git/commit
bfdd: enable bfd session if vrf interface available
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 8 Jan 2021 09:34:20 +0000 (09:34 +0000)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Sat, 9 Jan 2021 13:29:42 +0000 (13:29 +0000)
commit039c8158f33f75072433ab13f5c4fcb95c394d0b
tree09c5a8d39cc7c46a8c2b308753c4305ec3c03069
parent031705c9fc046f05560a2fa3926ead9bc99c96ae
bfdd: enable bfd session if vrf interface available

The vrf interface notification and interface notifications are separated
on zapi interface between the system (zebra daemon) and other daemons
(bfd for instance). In the case of bfd, the initial code was waiting for
vrf notification to create the socket. Actually, in vrf-lite world, we
need to wait the vrf interface to be present, in order to create the
socket and bind to the vrf interface (this is the usual way to work with
vrf-lite).
On bfd, the changes consist in delaying the socket creation first, then
when interface is created, check the interface name presence instead of
checking the interface configuration.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bfdd/bfd.c
bfdd/ptm_adapter.c