]>
git.proxmox.com Git - mirror_frr.git/blob - lib/logicalrouter.h
2 * Logical Router related header.
3 * Copyright (C) 2018 6WIND S.A.
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)
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
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
20 #ifndef _ZEBRA_LOGICAL_ROUTER_H
21 #define _ZEBRA_LOGICAL_ROUTER_H
23 /* Logical Router Backend defines */
24 #define LOGICALROUTER_BACKEND_OFF 0
25 #define LOGICALROUTER_BACKEND_NETNS 1
28 * Logical Router initializer/destructor
30 extern void logicalrouter_init(int (*writefunc
)(struct vty
*vty
));
31 extern void logicalrouter_terminate(void);
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
39 extern void logicalrouter_configure_backend(int backend_netns
);
41 #endif /*_ZEBRA_LOGICAL_ROUTER_H*/