diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-10-03 15:06:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-10-03 19:28:36 +0900 |
commit | 767856c836d066c6d962e4080e584f06e1ff1e18 (patch) | |
tree | 0f9072b3412a905abb680298a83bb5594cb46fe5 /config/default.go | |
parent | 4fb8241feca24910bfe3455dab658eab98557e89 (diff) |
config/default: Set treat-as-withdraw to true as default
RFC7606 updates some other RFC and says that BGP speakers
should not send NOTIFICATION for some errors in received UPDATE.
Thus, treat-as-withdraw should be true as a default value.
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index ed1fac91..c1a38ab6 100644 --- a/config/default.go +++ b/config/default.go @@ -143,6 +143,10 @@ func setDefaultNeighborConfigValuesWithViper(v *viper.Viper, n *Neighbor, asn ui n.State.PeerAs = n.Config.PeerAs n.AsPathOptions.State.AllowOwnAs = n.AsPathOptions.Config.AllowOwnAs + if !v.IsSet("neighbor.error-handling.config.treat-as-withdraw") { + n.ErrorHandling.Config.TreatAsWithdraw = true + } + if !v.IsSet("neighbor.timers.config.connect-retry") && n.Timers.Config.ConnectRetry == 0 { n.Timers.Config.ConnectRetry = float64(DEFAULT_CONNECT_RETRY) } |