diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-26 10:47:45 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-03 18:18:23 +0900 |
commit | bbf4b7c2a9bf53c560168427f632edd7bd06506f (patch) | |
tree | fc70e19497ab4c8d28f988e3f9668e520c78090a /config | |
parent | 4eb493a84c1f394c703e1c68b5c6086a1b7382f6 (diff) |
config: Option to enable BMP Route Mirroring
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/bgp_configs.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |