summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-10-09 07:15:08 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-10-09 07:15:08 -0700
commit6b6f6974fcea37dc006f90dbd2f8d65495048725 (patch)
tree5dc899df38c1ab7e410ce13440a43a35b98a0810 /config
parentc3d8784efc24816e30c3ba68cad8f9a8d9d00b28 (diff)
*: Notification support for BGP GR
implement draft-ietf-idr-bgp-gr-notification-07 Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 17ae937d..f56a3750 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -3549,6 +3549,9 @@ type GracefulRestartState struct {
Mode Mode `mapstructure:"mode"`
// original -> gobgp:deferral-time
DeferralTime uint16 `mapstructure:"deferral-time"`
+ // original -> gobgp:notification-enabled
+ //gobgp:notification-enabled's original type is boolean
+ NotificationEnabled bool `mapstructure:"notification-enabled"`
}
func (lhs *GracefulRestartState) Equal(rhs *GracefulRestartState) bool {
@@ -3582,6 +3585,9 @@ func (lhs *GracefulRestartState) Equal(rhs *GracefulRestartState) bool {
if lhs.DeferralTime != rhs.DeferralTime {
return false
}
+ if lhs.NotificationEnabled != rhs.NotificationEnabled {
+ return false
+ }
return true
}
@@ -3600,6 +3606,9 @@ type GracefulRestartConfig struct {
HelperOnly bool `mapstructure:"helper-only"`
// original -> gobgp:deferral-time
DeferralTime uint16 `mapstructure:"deferral-time"`
+ // original -> gobgp:notification-enabled
+ //gobgp:notification-enabled's original type is boolean
+ NotificationEnabled bool `mapstructure:"notification-enabled"`
}
func (lhs *GracefulRestartConfig) Equal(rhs *GracefulRestartConfig) bool {
@@ -3621,6 +3630,9 @@ func (lhs *GracefulRestartConfig) Equal(rhs *GracefulRestartConfig) bool {
if lhs.DeferralTime != rhs.DeferralTime {
return false
}
+ if lhs.NotificationEnabled != rhs.NotificationEnabled {
+ return false
+ }
return true
}