]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.h
bgpd: Add CLI for overlay index recursive resolution
authorAmeya Dharkar <adharkar@vmware.com>
Tue, 11 May 2021 22:26:29 +0000 (15:26 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Tue, 8 Jun 2021 00:59:45 +0000 (17:59 -0700)
commitdc6cef732ecb72e4e3d112ed8ddfd859f35ac465
treebd488c50c641130771790914d6f4e2117c9133bc
parent021b6596652452ad8a3d3dd401164b17f9121519
bgpd: Add CLI for overlay index recursive resolution

Gateway IP overlay index of the remote type-5 route is resolved
recursively using remote type-2 route. For the purpose of this
recursive resolution, for each L2VNI, we build a hash table of the
remote IP addresses received by remote type-2 routes.
For the topologies where overlay index resolution is not needed, we
do not need to build this remote-ip-hash.

Thus, make the recursive resolution of the overlay index conditional on
"enable-resolve-overlay-index" configuration.

router bgp 65001
 bgp router-id 192.168.100.1
 neighbor 10.0.1.2 remote-as 65002
!
 address-family l2vpn evpn
  neighbor 10.0.1.2 activate
  advertise-all-vni
  enable-resolve-overlay-index----------> New configuration
 exit-address-family

Gateway IP overlay index will be resolved only if this configuration is present.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
bgpd/bgp_evpn.c
bgpd/bgp_evpn.h
bgpd/bgp_evpn_vty.c
bgpd/bgpd.h