]>
Commit | Line | Data |
---|---|---|
6baf7bb8 DS |
1 | /* |
2 | * Zebra routemap header | |
3 | * Copyright (C) 2015 Cumulus Networks, Inc. | |
4 | * | |
5 | * This file is part of GNU Zebra. | |
6 | * | |
7 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation; either version 2, or (at your option) any | |
10 | * later version. | |
11 | * | |
12 | * GNU Zebra is distributed in the hope that it will be useful, but | |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
896014f4 DL |
17 | * You should have received a copy of the GNU General Public License along |
18 | * with this program; see the file COPYING; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
6baf7bb8 DS |
20 | */ |
21 | ||
22 | #ifndef __ZEBRA_ROUTEMAP_H__ | |
23 | #define __ZEBRA_ROUTEMAP_H__ | |
24 | ||
bf094f69 QY |
25 | #include "lib/routemap.h" |
26 | ||
51e94aa7 EDP |
27 | #ifdef __cplusplus |
28 | extern "C" { | |
29 | #endif | |
30 | ||
05f7f5db | 31 | extern void zebra_route_map_init(void); |
7cf16e19 | 32 | extern void zebra_routemap_config_write_protocol(struct vty *vty, |
33 | struct zebra_vrf *vrf); | |
d62a17ae | 34 | extern char *zebra_get_import_table_route_map(afi_t afi, uint32_t table); |
35 | extern void zebra_add_import_table_route_map(afi_t afi, const char *rmap_name, | |
36 | uint32_t table); | |
37 | extern void zebra_del_import_table_route_map(afi_t afi, uint32_t table); | |
8902474b | 38 | |
d62a17ae | 39 | extern route_map_result_t |
633a66a5 | 40 | zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance, |
123214ef | 41 | const struct prefix *p, |
7cf16e19 | 42 | struct nexthop *nexthop, vrf_id_t vrf_id, |
43 | route_tag_t tag, const char *rmap_name); | |
633a66a5 | 44 | extern route_map_result_t |
f5b7e50f | 45 | zebra_route_map_check(afi_t family, int rib_type, uint8_t instance, |
86391e56 | 46 | const struct prefix *p, struct nexthop *nexthop, |
ac6eebce | 47 | struct zebra_vrf *zvrf, route_tag_t tag); |
d62a17ae | 48 | extern route_map_result_t |
73bf60a0 | 49 | zebra_nht_route_map_check(afi_t afi, int client_proto, const struct prefix *p, |
ac6eebce | 50 | struct zebra_vrf *zvrf, struct route_entry *, |
51 | struct nexthop *nexthop); | |
6baf7bb8 | 52 | |
51e94aa7 EDP |
53 | #ifdef __cplusplus |
54 | } | |
55 | #endif | |
56 | ||
a2665e38 | 57 | extern void zebra_routemap_finish(void); |
e71627cb SP |
58 | |
59 | extern const struct frr_yang_module_info frr_zebra_route_map_info; | |
6baf7bb8 | 60 | #endif |