1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Zebra routemap header
4 * Copyright (C) 2015 Cumulus Networks, Inc.
7 #ifndef __ZEBRA_ROUTEMAP_H__
8 #define __ZEBRA_ROUTEMAP_H__
10 #include "lib/routemap.h"
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
,
22 extern void zebra_del_import_table_route_map(afi_t afi
, uint32_t table
);
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
);
38 extern void zebra_routemap_vrf_delete(struct zebra_vrf
*zvrf
);
44 extern void zebra_routemap_finish(void);
46 extern const struct frr_yang_module_info frr_zebra_route_map_info
;