mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-10 03:11:23 +00:00

Zebra: Add route-map support for Next Hop Tracking It is sometimes useful to restrict the resolution of recursive routes to only specific via's. For example, in some configurations resolving a route through a default route is not acceptable. This patch adds a new route-map attach point, to zebra's next-hop-tracking server. Whenever NHT is considering sending notification of a route resolution, it applies a specified route-map and only if it passes, is the NHT reachable message sent to the appropriate client protocol (BGP, OSPF etc.). If the route-map filters the resolution, then a withdraw is sent to the client protocol. The route-map is sent the ip address of the route via which the resolution is happening as well as the valid NHs associated with that route. We also add support for matching on IP addr prefix len and source protocol to ensure that resolution happens only via a very specific route.
11 lines
247 B
C
11 lines
247 B
C
#include <zebra.h>
|
|
#include "zebra/rib.h"
|
|
#include "zebra/zserv.h"
|
|
#include "zebra/zebra_rnh.h"
|
|
|
|
int zebra_evaluate_rnh_table (int vrfid, int family, int force)
|
|
{ return 0; }
|
|
|
|
void zebra_print_rnh_table (int vrfid, int family, struct vty *vty)
|
|
{}
|