summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-23 20:54:23 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 23:35:41 -0800
commitb19bbd415e8d33f01bcd407baece94ea1b81c957 (patch)
treee2a2ebec25d13924dfc7411ad25759c951dd70f8 /config/bgp_configs.go
parenta207c90fe4544caa95d30ffaec5defee78ef6fd3 (diff)
gobgpd: support graceful-restart restarting-speaker behavior
use `-r` option to start gobgpd in restarting-speaker mode Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 17baf726..d6c68782 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -1709,6 +1709,12 @@ type MpGracefulRestartState struct {
// original -> bgp-op:advertised
//bgp-op:advertised's original type is boolean
Advertised bool `mapstructure:"advertised"`
+ // original -> gobgp:end-of-rib-received
+ //gobgp:end-of-rib-received's original type is boolean
+ EndOfRibReceived bool `mapstructure:"end-of-rib-received"`
+ // original -> gobgp:end-of-rib-sent
+ //gobgp:end-of-rib-sent's original type is boolean
+ EndOfRibSent bool `mapstructure:"end-of-rib-sent"`
}
//struct for container bgp-mp:config
@@ -1787,6 +1793,8 @@ type GracefulRestartState struct {
LocalRestarting bool `mapstructure:"local-restarting"`
// original -> bgp-op:mode
Mode Mode `mapstructure:"mode"`
+ // original -> gobgp:deferral-time
+ DeferralTime uint16 `mapstructure:"deferral-time"`
}
//struct for container bgp:config
@@ -1802,6 +1810,8 @@ type GracefulRestartConfig struct {
// original -> bgp:helper-only
//bgp:helper-only's original type is boolean
HelperOnly bool `mapstructure:"helper-only"`
+ // original -> gobgp:deferral-time
+ DeferralTime uint16 `mapstructure:"deferral-time"`
}
//struct for container bgp:graceful-restart