]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
6baf7bb8 DS |
2 | /* |
3 | * Zebra routemap header | |
4 | * Copyright (C) 2015 Cumulus Networks, Inc. | |
6baf7bb8 DS |
5 | */ |
6 | ||
7 | #ifndef __ZEBRA_ROUTEMAP_H__ | |
8 | #define __ZEBRA_ROUTEMAP_H__ | |
9 | ||
bf094f69 QY |
10 | #include "lib/routemap.h" |
11 | ||
51e94aa7 EDP |
12 | #ifdef __cplusplus |
13 | extern "C" { | |
14 | #endif | |
15 | ||
05f7f5db | 16 | extern void zebra_route_map_init(void); |
7cf16e19 | 17 | extern void zebra_routemap_config_write_protocol(struct vty *vty, |
18 | struct zebra_vrf *vrf); | |
d62a17ae | 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); | |
8902474b | 23 | |
d62a17ae | 24 | extern route_map_result_t |
633a66a5 | 25 | zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance, |
123214ef | 26 | const struct prefix *p, |
7cf16e19 | 27 | struct nexthop *nexthop, vrf_id_t vrf_id, |
28 | route_tag_t tag, const char *rmap_name); | |
633a66a5 | 29 | extern route_map_result_t |
f5b7e50f | 30 | zebra_route_map_check(afi_t family, int rib_type, uint8_t instance, |
86391e56 | 31 | const struct prefix *p, struct nexthop *nexthop, |
ac6eebce | 32 | struct zebra_vrf *zvrf, route_tag_t tag); |
d62a17ae | 33 | extern route_map_result_t |
73bf60a0 | 34 | zebra_nht_route_map_check(afi_t afi, int client_proto, const struct prefix *p, |
ac6eebce | 35 | struct zebra_vrf *zvrf, struct route_entry *, |
36 | struct nexthop *nexthop); | |
6baf7bb8 | 37 | |
cda0f501 DS |
38 | extern void zebra_routemap_vrf_delete(struct zebra_vrf *zvrf); |
39 | ||
51e94aa7 EDP |
40 | #ifdef __cplusplus |
41 | } | |
42 | #endif | |
43 | ||
a2665e38 | 44 | extern void zebra_routemap_finish(void); |
e71627cb SP |
45 | |
46 | extern const struct frr_yang_module_info frr_zebra_route_map_info; | |
6baf7bb8 | 47 | #endif |