]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_routemap.h
zebra: On shutdown stop hook calls for fpm rmac updates
[mirror_frr.git] / zebra / zebra_routemap.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Zebra routemap header
4 * Copyright (C) 2015 Cumulus Networks, Inc.
5 */
6
7 #ifndef __ZEBRA_ROUTEMAP_H__
8 #define __ZEBRA_ROUTEMAP_H__
9
10 #include "lib/routemap.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 extern void zebra_route_map_init(void);
17 extern void zebra_routemap_config_write_protocol(struct vty *vty,
18 struct zebra_vrf *vrf);
19 extern char *zebra_get_import_table_route_map(afi_t afi, uint32_t table);
20 extern void zebra_add_import_table_route_map(afi_t afi, const char *rmap_name,
21 uint32_t table);
22 extern void zebra_del_import_table_route_map(afi_t afi, uint32_t table);
23
24 extern route_map_result_t
25 zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance,
26 const struct prefix *p,
27 struct nexthop *nexthop, vrf_id_t vrf_id,
28 route_tag_t tag, const char *rmap_name);
29 extern route_map_result_t
30 zebra_route_map_check(afi_t family, int rib_type, uint8_t instance,
31 const struct prefix *p, struct nexthop *nexthop,
32 struct zebra_vrf *zvrf, route_tag_t tag);
33 extern route_map_result_t
34 zebra_nht_route_map_check(afi_t afi, int client_proto, const struct prefix *p,
35 struct zebra_vrf *zvrf, struct route_entry *,
36 struct nexthop *nexthop);
37
38 extern void zebra_routemap_vrf_delete(struct zebra_vrf *zvrf);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 extern void zebra_routemap_finish(void);
45
46 extern const struct frr_yang_module_info frr_zebra_route_map_info;
47 #endif