]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_routemap.h
2 * Zebra routemap header
3 * Copyright (C) 2015 Cumulus Networks, Inc.
5 * This file is part of GNU Zebra.
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
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.
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
22 #ifndef __ZEBRA_ROUTEMAP_H__
23 #define __ZEBRA_ROUTEMAP_H__
25 #include "lib/routemap.h"
27 extern void zebra_route_map_init(void);
28 extern void zebra_routemap_config_write_protocol(struct vty
*vty
);
29 extern char *zebra_get_import_table_route_map(afi_t afi
, uint32_t table
);
30 extern void zebra_add_import_table_route_map(afi_t afi
, const char *rmap_name
,
32 extern void zebra_del_import_table_route_map(afi_t afi
, uint32_t table
);
34 extern void zebra_route_map_write_delay_timer(struct vty
*);
36 extern route_map_result_t
37 zebra_import_table_route_map_check(int family
, int rib_type
, uint8_t instance
,
38 struct prefix
*p
, struct nexthop
*nexthop
,
39 vrf_id_t vrf_id
, route_tag_t tag
,
40 const char *rmap_name
);
41 extern route_map_result_t
42 zebra_route_map_check(int family
, int rib_type
, uint8_t instance
,
43 struct prefix
*p
, struct nexthop
*nexthop
,
44 vrf_id_t vrf_id
, route_tag_t tag
);
45 extern route_map_result_t
46 zebra_nht_route_map_check(int family
, int client_proto
, struct prefix
*p
,
47 struct route_entry
*, struct nexthop
*nexthop
);