]>
git.proxmox.com Git - mirror_frr.git/blob - lib/vrf_int.h
3 * Copyright (C) 2017 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
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
23 #ifndef __LIB_VRF_PRIVATE_H__
24 #define __LIB_VRF_PRIVATE_H__
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
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
46 * Given a newly running vrf enable it to be used
47 * by interested routing protocols
49 extern int vrf_enable(struct vrf
*);
54 * Given a vrf that is being deleted, delete it
55 * from interested parties
57 extern void vrf_delete(struct vrf
*);