mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
*: Add --enable-datacenter to turn on datacenter defaults
Compile in DataCenter Defaults if --enable-datacenter is configured instead of --enable-cumulus Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
05ba625af7
commit
df970aa6ef
11
configure.ac
11
configure.ac
|
@ -313,6 +313,8 @@ AC_ARG_ENABLE(werror,
|
|||
AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
|
||||
AC_ARG_ENABLE(cumulus,
|
||||
AS_HELP_STRING([--enable-cumulus], [enable Cumulus Switch Special Extensions]))
|
||||
AC_ARG_ENABLE(datacenter,
|
||||
AS_HELP_STRING([--enable-datacenter], [enable Compilation for Data Center Extensions]))
|
||||
AC_ARG_ENABLE(rr-semantics,
|
||||
AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
|
||||
AC_ARG_ENABLE([protobuf],
|
||||
|
@ -381,12 +383,17 @@ case "$host" in
|
|||
esac
|
||||
AC_SUBST(MPLS_METHOD)
|
||||
|
||||
if test "${enable_cumulus}" = "yes" ; then
|
||||
AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
|
||||
if test "${enable_datacenter}" = "yes" ; then
|
||||
AC_DEFINE(HAVE_DATACENTER,,Compile extensions for a DataCenter)
|
||||
DFLT_NAME="datacenter"
|
||||
else
|
||||
DFLT_NAME="traditional"
|
||||
fi
|
||||
|
||||
if test "${enable_cumulus}" = "yes" ; then
|
||||
AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
|
||||
fi
|
||||
|
||||
AC_SUBST(DFLT_NAME)
|
||||
AC_DEFINE_UNQUOTED(DFLT_NAME,["$DFLT_NAME"], Name of the configuration default set)
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_CUMULUS
|
||||
#ifdef HAVE_DATACENTER
|
||||
|
||||
#define DFLT_BGP_IMPORT_CHECK 1
|
||||
#define DFLT_BGP_TIMERS_CONNECT 10
|
||||
|
@ -36,7 +36,7 @@
|
|||
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 1
|
||||
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 1
|
||||
|
||||
#else /* !HAVE_CUMULUS */
|
||||
#else /* !HAVE_DATACENTER */
|
||||
|
||||
#define DFLT_BGP_IMPORT_CHECK 0
|
||||
#define DFLT_BGP_TIMERS_CONNECT 120
|
||||
|
@ -49,6 +49,6 @@
|
|||
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 0
|
||||
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 0
|
||||
|
||||
#endif /* !HAVE_CUMULUS */
|
||||
#endif /* !HAVE_DATACENTER */
|
||||
|
||||
#endif /* _FRR_DEFAULTS_H */
|
||||
|
|
Loading…
Reference in a new issue