From 415710f94d85ed3c3e042ee6cfb83751b0ec003c Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 4 Jul 2017 16:41:26 +0900 Subject: config: Use BmpServerConfig struct in BmpServerState Currently, BmpServerState has empty structure and can not store any configration information. This patch fixes to use BmpServerConfig structure in BmpServerState to store the same information. Signed-off-by: IWASE Yusuke --- 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 f170e97c..87542200 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -1206,6 +1206,18 @@ func (lhs *Mrt) Equal(rhs *Mrt) bool { //struct for container gobgp:state type BmpServerState struct { + // original -> gobgp:address + //gobgp:address's original type is inet:ip-address + Address string `mapstructure:"address" json:"address,omitempty"` + // original -> gobgp:port + Port uint32 `mapstructure:"port" json:"port,omitempty"` + // original -> gobgp:route-monitoring-policy + 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"` } //struct for container gobgp:config -- cgit v1.2.3