]>
git.proxmox.com Git - mirror_frr.git/blob - sharpd/sharp_zebra.h
2 * Zebra connect library for SHARP
3 * Copyright (C) Cumulus Networks, Inc.
6 * This file is part of FRR.
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
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.
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
22 #ifndef __SHARP_ZEBRA_H__
23 #define __SHARP_ZEBRA_H__
25 extern void sharp_zebra_init(void);
27 extern void vrf_label_add(vrf_id_t vrf_id
, afi_t afi
, mpls_label_t label
);
28 extern void route_add(struct prefix
*p
, vrf_id_t
, uint8_t instance
,
29 struct nexthop_group
*nhg
);
30 extern void route_delete(struct prefix
*p
, vrf_id_t vrf_id
, uint8_t instance
);
31 extern void sharp_zebra_nexthop_watch(struct prefix
*p
, vrf_id_t vrf_id
,
32 bool import
, bool watch
, bool connected
);
34 extern void sharp_install_routes_helper(struct prefix
*p
, vrf_id_t vrf_id
,
36 struct nexthop_group
*nhg
,
38 extern void sharp_remove_routes_helper(struct prefix
*p
, vrf_id_t vrf_id
,
39 uint8_t instance
, uint32_t routes
);