mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 14:43:23 +00:00

BGP: Fix network import check use with NHT instead of scanner When next hop tracking was implemented and the bgp scanner was eliminated, the "network import-check" command got broken. This patch fixes that issue. NHT is used to not just track nexthops, but also the static routes that are announced as part of BGP's network command. The routes are registered only when import-check is enabled. To optimize performance, we register static routes only when import-check is enabled. Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
22 lines
545 B
C
22 lines
545 B
C
#include <zebra.h>
|
|
#include "zebra/rib.h"
|
|
#include "zebra/zserv.h"
|
|
#include "zebra/zebra_rnh.h"
|
|
|
|
int zebra_rnh_ip_default_route = 0;
|
|
int zebra_rnh_ipv6_default_route = 0;
|
|
|
|
int zebra_evaluate_rnh (int vrfid, int family, int force, rnh_type_t type,
|
|
struct prefix *p)
|
|
{ return 0; }
|
|
|
|
void zebra_print_rnh_table (int vrfid, int family, struct vty *vty,
|
|
rnh_type_t type)
|
|
{}
|
|
|
|
void zebra_register_rnh_static_nh(struct prefix *p, struct route_node *rn)
|
|
{}
|
|
|
|
void zebra_deregister_rnh_static_nh(struct prefix *p, struct route_node *rn)
|
|
{}
|