]> git.proxmox.com Git - mirror_frr.git/blob - lib/vrf_int.h
Merge pull request #13278 from FRRouting/mergify/bp/stable/8.5/pr-13269
[mirror_frr.git] / lib / vrf_int.h
1 /*
2 * VRF Internal Header
3 * Copyright (C) 2017 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
19 * along with FRR; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23 #ifndef __LIB_VRF_PRIVATE_H__
24 #define __LIB_VRF_PRIVATE_H__
25
26 #include "vrf.h"
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /*
33 * These functions should only be called by:
34 * zebra/if_netlink.c -> The interface from OS into Zebra
35 * lib/zclient.c -> The interface from Zebra to each daemon
36 *
37 * Why you ask? Well because these are the turn on/off
38 * functions and the only place we can really turn a
39 * vrf on properly is in the call up from the os -> zebra
40 * and the pass through of this informatoin from zebra -> protocols
41 */
42
43 /*
44 * vrf_enable
45 *
46 * Given a newly running vrf enable it to be used
47 * by interested routing protocols
48 */
49 extern int vrf_enable(struct vrf *);
50
51 /*
52 * vrf_delete
53 *
54 * Given a vrf that is being deleted, delete it
55 * from interested parties
56 */
57 extern void vrf_delete(struct vrf *);
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif