]>
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
27 /* Logical Router Backend defines */
28 #define LOGICALROUTER_BACKEND_OFF 0
29 #define LOGICALROUTER_BACKEND_NETNS 1
32 * Logical Router initializer/destructor
34 extern void logicalrouter_init(int (*writefunc
)(struct vty
*vty
));
35 extern void logicalrouter_terminate(void);
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
43 extern void logicalrouter_configure_backend(int backend_netns
);
49 #endif /*_ZEBRA_LOGICAL_ROUTER_H*/