summaryrefslogtreecommitdiffstats
path: root/lib/defaults.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-08-01 18:50:56 +0200
committerDavid Lamparter <equinox@diac24.net>2019-12-06 15:13:32 +0100
commit5d5393b943c500c63770a06df9036a1558d0f100 (patch)
tree8fd004831109cc803cf92ad81d4afbf66038676d /lib/defaults.h
parentbgpd: move config-write to bgp_vty.c (diff)
downloadfrr-5d5393b943c500c63770a06df9036a1558d0f100.tar.xz
frr-5d5393b943c500c63770a06df9036a1558d0f100.zip
bgpd: use new defaults system (v2)
This moves all the DFLT_BGP_* stuff over to the new defaults mechanism. bgp_timers_nondefault() added to get better file-scoping. v2: moved everything into bgp_vty.c so that the core BGP code is independent of the CLI-specific defaults. This should make the future northbound conversion easier. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/defaults.h')
-rw-r--r--lib/defaults.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/defaults.h b/lib/defaults.h
index b35bdfeaf..4ccdfb5c1 100644
--- a/lib/defaults.h
+++ b/lib/defaults.h
@@ -26,27 +26,11 @@
#ifdef HAVE_DATACENTER
-#define DFLT_BGP_IMPORT_CHECK 1
-#define DFLT_BGP_TIMERS_CONNECT 10
-#define DFLT_BGP_HOLDTIME 9
-#define DFLT_BGP_KEEPALIVE 3
-#define DFLT_BGP_LOG_NEIGHBOR_CHANGES 1
-#define DFLT_BGP_SHOW_HOSTNAME 1
-#define DFLT_BGP_DETERMINISTIC_MED 1
-
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 1
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 1
#else /* !HAVE_DATACENTER */
-#define DFLT_BGP_IMPORT_CHECK 0
-#define DFLT_BGP_TIMERS_CONNECT 120
-#define DFLT_BGP_HOLDTIME 180
-#define DFLT_BGP_KEEPALIVE 60
-#define DFLT_BGP_LOG_NEIGHBOR_CHANGES 0
-#define DFLT_BGP_SHOW_HOSTNAME 0
-#define DFLT_BGP_DETERMINISTIC_MED 0
-
#define DFLT_OSPF_LOG_ADJACENCY_CHANGES 0
#define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 0