]> git.proxmox.com Git - mirror_frr.git/blame - lib/logicalrouter.h
Merge pull request #5163 from ton31337/fix/do_not_reconnect_if_prefix_overflow_7.1
[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
5e244469
RW
23#ifdef __cplusplus
24extern "C" {
25#endif
26
e26aedbe
PG
27/* Logical Router Backend defines */
28#define LOGICALROUTER_BACKEND_OFF 0
29#define LOGICALROUTER_BACKEND_NETNS 1
30
31/*
32 * Logical Router initializer/destructor
33 */
34extern void logicalrouter_init(int (*writefunc)(struct vty *vty));
35extern void logicalrouter_terminate(void);
36
37/* used to configure backend for logical router
38 * Currently, the whole NETNS feature is exclusively shared
39 * between logical router and VRF backend NETNS
40 * However, when logical router feature will be available,
41 * one can think of having exclusivity only per NETNS
42 */
43extern void logicalrouter_configure_backend(int backend_netns);
44
5e244469
RW
45#ifdef __cplusplus
46}
47#endif
48
e26aedbe 49#endif /*_ZEBRA_LOGICAL_ROUTER_H*/