]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: prevent routes loop through itself
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 30 Jun 2021 08:52:29 +0000 (10:52 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 12 Jul 2021 11:57:36 +0000 (13:57 +0200)
commit654a5978f695087af062bfc9a382321fa2ccc4ae
treec76799ad69a06714dbb30253e025a04983c2c6d1
parent507559a089a7ba539b90c4bb1cd0410a4b4b1345
bgpd: prevent routes loop through itself

Some BGP updates received by BGP invite local router to
install a route through itself. The system will not do it, and
the route should be considered as not valid at the earliest.

This case is detected on the zebra, and this detection prevents
from trying to install this route to the local system. However,
the nexthop tracking mechanism is called, and acts as if the route
was valid, which is not the case.

By detecting in BGP that use case, we avoid installing the invalid
routes.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_evpn.c
bgpd/bgp_fsm.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_nht.c
bgpd/bgp_nht.h
bgpd/bgp_route.c
tests/topotests/bgp_basic_functionality_topo1/test_bgp_basic_functionality.py