]> git.proxmox.com Git - mirror_frr.git/blame - lib/vrf_int.h
Merge pull request #5739 from mjstapp/nhg_show_ordered
[mirror_frr.git] / lib / vrf_int.h
CommitLineData
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
5e244469
RW
28#ifdef __cplusplus
29extern "C" {
30#endif
31
7922fc65
DS
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 */
d62a17ae 49extern int vrf_enable(struct vrf *);
7922fc65
DS
50
51/*
52 * vrf_delete
53 *
54 * Given a vrf that is being deleted, delete it
55 * from interested parties
56 */
d62a17ae 57extern void vrf_delete(struct vrf *);
7922fc65 58
5e244469
RW
59#ifdef __cplusplus
60}
61#endif
62
7922fc65 63#endif