]>
Commit | Line | Data |
---|---|---|
7922fc65 DS |
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 | /* | |
29 | * These functions should only be called by: | |
30 | * zebra/if_netlink.c -> The interface from OS into Zebra | |
31 | * lib/zclient.c -> The interface from Zebra to each daemon | |
32 | * | |
33 | * Why you ask? Well because these are the turn on/off | |
34 | * functions and the only place we can really turn a | |
35 | * vrf on properly is in the call up from the os -> zebra | |
36 | * and the pass through of this informatoin from zebra -> protocols | |
37 | */ | |
38 | ||
39 | /* | |
40 | * vrf_enable | |
41 | * | |
42 | * Given a newly running vrf enable it to be used | |
43 | * by interested routing protocols | |
44 | */ | |
d62a17ae | 45 | extern int vrf_enable(struct vrf *); |
7922fc65 DS |
46 | |
47 | /* | |
48 | * vrf_delete | |
49 | * | |
50 | * Given a vrf that is being deleted, delete it | |
51 | * from interested parties | |
52 | */ | |
d62a17ae | 53 | extern void vrf_delete(struct vrf *); |
7922fc65 DS |
54 | |
55 | #endif |