From 45050d9b97f3821c6dbdbc98678a62ddfcf81aad Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 25 Apr 2016 23:52:21 +0900 Subject: remove collector mode support We need to update yang config collector mode (split into config and state). before that, let's remove the feature itself to see if there is any user of it. Signed-off-by: FUJITA Tomonori --- config/bgp_configs.go | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'config/bgp_configs.go') diff --git a/config/bgp_configs.go b/config/bgp_configs.go index e6a3dbad..5edaad2e 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -2561,23 +2561,6 @@ func (lhs *Zebra) Equal(rhs *Zebra) bool { return true } -//struct for container gobgp:collector -type Collector struct { - // original -> gobgp:enabled - //gobgp:enabled's original type is boolean - Enabled bool `mapstructure:"enabled"` -} - -func (lhs *Collector) Equal(rhs *Collector) bool { - if lhs == nil || rhs == nil { - return false - } - if lhs.Enabled != rhs.Enabled { - return false - } - return true -} - //struct for container gobgp:route-target-membership type RouteTargetMembership struct { // original -> gobgp:deferral-time @@ -3932,8 +3915,6 @@ type Global struct { AfiSafis []AfiSafi `mapstructure:"afi-safis"` // original -> rpol:apply-policy ApplyPolicy ApplyPolicy `mapstructure:"apply-policy"` - // original -> gobgp:collector - Collector Collector `mapstructure:"collector"` // original -> gobgp:zebra Zebra Zebra `mapstructure:"zebra"` // original -> gobgp:mpls-label-range @@ -3986,9 +3967,6 @@ func (lhs *Global) Equal(rhs *Global) bool { if !lhs.ApplyPolicy.Equal(&(rhs.ApplyPolicy)) { return false } - if !lhs.Collector.Equal(&(rhs.Collector)) { - return false - } if !lhs.Zebra.Equal(&(rhs.Zebra)) { return false } -- cgit v1.2.3