]>
Commit | Line | Data |
---|---|---|
8a71d93d DS |
1 | /* |
2 | * Zebra connect library for SHARP | |
3 | * Copyright (C) Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
5 | * | |
6 | * This file is part of FRR. | |
7 | * | |
8 | * FRR is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * FRR is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License along | |
19 | * with this program; see the file COPYING; if not, write to the Free Software | |
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
21 | */ | |
22 | #ifndef __SHARP_ZEBRA_H__ | |
23 | #define __SHARP_ZEBRA_H__ | |
24 | ||
25 | extern void sharp_zebra_init(void); | |
26 | ||
7d061b3c | 27 | extern void vrf_label_add(vrf_id_t vrf_id, afi_t afi, mpls_label_t label); |
0cf08685 | 28 | extern void route_add(struct prefix *p, vrf_id_t, uint8_t instance, |
694b242f | 29 | struct nexthop_group *nhg); |
0cf08685 | 30 | extern void route_delete(struct prefix *p, vrf_id_t vrf_id, uint8_t instance); |
91529dc8 DS |
31 | extern void sharp_zebra_nexthop_watch(struct prefix *p, vrf_id_t vrf_id, |
32 | bool import, bool watch, bool connected); | |
6b98d34f | 33 | |
0cf08685 DS |
34 | extern void sharp_install_routes_helper(struct prefix *p, vrf_id_t vrf_id, |
35 | uint8_t instance, | |
36 | struct nexthop_group *nhg, | |
37 | uint32_t routes); | |
38 | extern void sharp_remove_routes_helper(struct prefix *p, vrf_id_t vrf_id, | |
39 | uint8_t instance, uint32_t routes); | |
8a71d93d | 40 | #endif |