mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 03:47:47 +00:00
bgpd: Fix showing default timers bgp x y
Fixes:ef4a9215b9
("bgpd: Reuse defined constants for BGP timers") Fixes:ab3535fbcf
("bgpd: Implement connect retry backoff") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
3d7dbcf6c6
commit
76fc75de9e
@ -93,18 +93,6 @@ FRR_CFG_DEFAULT_BOOL(BGP_DETERMINISTIC_MED,
|
|||||||
{ .val_bool = true, .match_profile = "datacenter", },
|
{ .val_bool = true, .match_profile = "datacenter", },
|
||||||
{ .val_bool = false },
|
{ .val_bool = false },
|
||||||
);
|
);
|
||||||
FRR_CFG_DEFAULT_ULONG(BGP_CONNECT_RETRY,
|
|
||||||
{ .val_ulong = 10, .match_profile = "datacenter", },
|
|
||||||
{ .val_ulong = BGP_DEFAULT_CONNECT_RETRY },
|
|
||||||
);
|
|
||||||
FRR_CFG_DEFAULT_ULONG(BGP_HOLDTIME,
|
|
||||||
{ .val_ulong = 9, .match_profile = "datacenter", },
|
|
||||||
{ .val_ulong = BGP_DEFAULT_KEEPALIVE },
|
|
||||||
);
|
|
||||||
FRR_CFG_DEFAULT_ULONG(BGP_KEEPALIVE,
|
|
||||||
{ .val_ulong = 3, .match_profile = "datacenter", },
|
|
||||||
{ .val_ulong = BGP_DEFAULT_KEEPALIVE },
|
|
||||||
);
|
|
||||||
FRR_CFG_DEFAULT_BOOL(BGP_EBGP_REQUIRES_POLICY,
|
FRR_CFG_DEFAULT_BOOL(BGP_EBGP_REQUIRES_POLICY,
|
||||||
{ .val_bool = false, .match_profile = "datacenter", },
|
{ .val_bool = false, .match_profile = "datacenter", },
|
||||||
{ .val_bool = false, .match_version = "< 7.4", },
|
{ .val_bool = false, .match_version = "< 7.4", },
|
||||||
|
@ -10,6 +10,19 @@
|
|||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
struct bgp;
|
struct bgp;
|
||||||
|
|
||||||
|
FRR_CFG_DEFAULT_ULONG(BGP_KEEPALIVE,
|
||||||
|
{ .val_ulong = 3, .match_profile = "datacenter", },
|
||||||
|
{ .val_ulong = BGP_DEFAULT_KEEPALIVE },
|
||||||
|
);
|
||||||
|
FRR_CFG_DEFAULT_ULONG(BGP_HOLDTIME,
|
||||||
|
{ .val_ulong = 9, .match_profile = "datacenter", },
|
||||||
|
{ .val_ulong = BGP_DEFAULT_HOLDTIME },
|
||||||
|
);
|
||||||
|
FRR_CFG_DEFAULT_ULONG(BGP_CONNECT_RETRY,
|
||||||
|
{ .val_ulong = 10, .match_profile = "datacenter", },
|
||||||
|
{ .val_ulong = BGP_DEFAULT_CONNECT_RETRY },
|
||||||
|
);
|
||||||
|
|
||||||
#define BGP_INSTANCE_HELP_STR "BGP view\nBGP VRF\nView/VRF name\n"
|
#define BGP_INSTANCE_HELP_STR "BGP view\nBGP VRF\nView/VRF name\n"
|
||||||
#define BGP_INSTANCE_ALL_HELP_STR "BGP view\nBGP VRF\nAll Views/VRFs\n"
|
#define BGP_INSTANCE_ALL_HELP_STR "BGP view\nBGP VRF\nAll Views/VRFs\n"
|
||||||
|
|
||||||
|
@ -583,9 +583,9 @@ void bgp_timers_set(struct vty *vty, struct bgp *bgp, uint32_t keepalive,
|
|||||||
/* mostly for completeness - CLI uses its own defaults */
|
/* mostly for completeness - CLI uses its own defaults */
|
||||||
void bgp_timers_unset(struct bgp *bgp)
|
void bgp_timers_unset(struct bgp *bgp)
|
||||||
{
|
{
|
||||||
bgp->default_keepalive = BGP_DEFAULT_KEEPALIVE;
|
bgp->default_keepalive = DFLT_BGP_KEEPALIVE;
|
||||||
bgp->default_holdtime = BGP_DEFAULT_HOLDTIME;
|
bgp->default_holdtime = DFLT_BGP_HOLDTIME;
|
||||||
bgp->default_connect_retry = BGP_DEFAULT_CONNECT_RETRY;
|
bgp->default_connect_retry = DFLT_BGP_CONNECT_RETRY;
|
||||||
bgp->default_delayopen = BGP_DEFAULT_DELAYOPEN;
|
bgp->default_delayopen = BGP_DEFAULT_DELAYOPEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user