From 6b6f6974fcea37dc006f90dbd2f8d65495048725 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Sun, 9 Oct 2016 07:15:08 -0700 Subject: *: Notification support for BGP GR implement draft-ietf-idr-bgp-gr-notification-07 Signed-off-by: Wataru Ishida --- config/bgp_configs.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config') 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 } -- cgit v1.2.3