]> git.proxmox.com Git - mirror_frr.git/blame - lib/logicalrouter.h
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / logicalrouter.h
CommitLineData
e26aedbe
PG
1/*
2 * Logical Router related header.
3 * Copyright (C) 2018 6WIND S.A.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; see the file COPYING; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef _ZEBRA_LOGICAL_ROUTER_H
21#define _ZEBRA_LOGICAL_ROUTER_H
22
23/* Logical Router Backend defines */
24#define LOGICALROUTER_BACKEND_OFF 0
25#define LOGICALROUTER_BACKEND_NETNS 1
26
27/*
28 * Logical Router initializer/destructor
29 */
30extern void logicalrouter_init(int (*writefunc)(struct vty *vty));
31extern void logicalrouter_terminate(void);
32
33/* used to configure backend for logical router
34 * Currently, the whole NETNS feature is exclusively shared
35 * between logical router and VRF backend NETNS
36 * However, when logical router feature will be available,
37 * one can think of having exclusivity only per NETNS
38 */
39extern void logicalrouter_configure_backend(int backend_netns);
40
41#endif /*_ZEBRA_LOGICAL_ROUTER_H*/