diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-25 23:52:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-25 23:52:21 +0900 |
commit | 45050d9b97f3821c6dbdbc98678a62ddfcf81aad (patch) | |
tree | e54184769a3e441d763e0cecad93ed13372b849a /config/bgp_configs.go | |
parent | 6f95b7dc62b0ce8523e4f6da2e2bff5f4a4d3b78 (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 22 |
1 files changed, 0 insertions, 22 deletions
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 } |