mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00: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)]))
|
AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)]))
|
||||||
AC_ARG_ENABLE(cumulus,
|
AC_ARG_ENABLE(cumulus,
|
||||||
AS_HELP_STRING([--enable-cumulus], [enable Cumulus Switch Special Extensions]))
|
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,
|
AC_ARG_ENABLE(rr-semantics,
|
||||||
AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
|
AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
|
||||||
AC_ARG_ENABLE([protobuf],
|
AC_ARG_ENABLE([protobuf],
|
||||||
@ -381,12 +383,17 @@ case "$host" in
|
|||||||
esac
|
esac
|
||||||
AC_SUBST(MPLS_METHOD)
|
AC_SUBST(MPLS_METHOD)
|
||||||
|
|
||||||
if test "${enable_cumulus}" = "yes" ; then
|
if test "${enable_datacenter}" = "yes" ; then
|
||||||
AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
|
AC_DEFINE(HAVE_DATACENTER,,Compile extensions for a DataCenter)
|
||||||
DFLT_NAME="datacenter"
|
DFLT_NAME="datacenter"
|
||||||
else
|
else
|
||||||
DFLT_NAME="traditional"
|
DFLT_NAME="traditional"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "${enable_cumulus}" = "yes" ; then
|
||||||
|
AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST(DFLT_NAME)
|
AC_SUBST(DFLT_NAME)
|
||||||
AC_DEFINE_UNQUOTED(DFLT_NAME,["$DFLT_NAME"], Name of the configuration default set)
|
AC_DEFINE_UNQUOTED(DFLT_NAME,["$DFLT_NAME"], Name of the configuration default set)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_CUMULUS
|
#ifdef HAVE_DATACENTER
|
||||||
|
|
||||||
#define DFLT_BGP_IMPORT_CHECK 1
|
#define DFLT_BGP_IMPORT_CHECK 1
|
||||||
#define DFLT_BGP_TIMERS_CONNECT 10
|
#define DFLT_BGP_TIMERS_CONNECT 10
|
||||||
@ -36,7 +36,7 @@
|
|||||||
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 1
|
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 1
|
||||||
#define DFLT_OSPF6_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_IMPORT_CHECK 0
|
||||||
#define DFLT_BGP_TIMERS_CONNECT 120
|
#define DFLT_BGP_TIMERS_CONNECT 120
|
||||||
@ -49,6 +49,6 @@
|
|||||||
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 0
|
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 0
|
||||||
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 0
|
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 0
|
||||||
|
|
||||||
#endif /* !HAVE_CUMULUS */
|
#endif /* !HAVE_DATACENTER */
|
||||||
|
|
||||||
#endif /* _FRR_DEFAULTS_H */
|
#endif /* _FRR_DEFAULTS_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user