From bbf4b7c2a9bf53c560168427f632edd7bd06506f Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 26 May 2017 10:47:45 +0900 Subject: config: Option to enable BMP Route Mirroring Signed-off-by: IWASE Yusuke --- config/bgp_configs.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/bgp_configs.go b/config/bgp_configs.go index 45515d00..4df1503d 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -1171,6 +1171,9 @@ type BmpServerConfig struct { RouteMonitoringPolicy BmpRouteMonitoringPolicyType `mapstructure:"route-monitoring-policy" json:"route-monitoring-policy,omitempty"` // original -> gobgp:statistics-timeout StatisticsTimeout uint16 `mapstructure:"statistics-timeout" json:"statistics-timeout,omitempty"` + // original -> gobgp:route-mirroring-enabled + //gobgp:route-mirroring-enabled's original type is boolean + RouteMirroringEnabled bool `mapstructure:"route-mirroring-enabled" json:"route-mirroring-enabled,omitempty"` } func (lhs *BmpServerConfig) Equal(rhs *BmpServerConfig) bool { @@ -1189,6 +1192,9 @@ func (lhs *BmpServerConfig) Equal(rhs *BmpServerConfig) bool { if lhs.StatisticsTimeout != rhs.StatisticsTimeout { return false } + if lhs.RouteMirroringEnabled != rhs.RouteMirroringEnabled { + return false + } return true } -- cgit v1.2.3