summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-25 23:52:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-25 23:52:21 +0900
commit45050d9b97f3821c6dbdbc98678a62ddfcf81aad (patch)
treee54184769a3e441d763e0cecad93ed13372b849a /config/bgp_configs.go
parent6f95b7dc62b0ce8523e4f6da2e2bff5f4a4d3b78 (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.go22
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
}