summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-02 00:03:41 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-03 02:49:59 -0700
commitbe9918a163a20a7a885dc9206a733d983ee76b3a (patch)
treec73975d94321a1a02429fb6ad0d3e0373c3f4813 /config/bgp_configs.go
parentc7653aa9d4276098a7a6b5ade5ffce5bf5d089e8 (diff)
remove label allocation completely
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index f4c3b3fd..76b7e379 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -2780,27 +2780,6 @@ func (lhs *Neighbor) Equal(rhs *Neighbor) bool {
return true
}
-//struct for container gobgp:mpls-label-range
-type MplsLabelRange struct {
- // original -> gobgp:min-label
- MinLabel uint32 `mapstructure:"min-label"`
- // original -> gobgp:max-label
- MaxLabel uint32 `mapstructure:"max-label"`
-}
-
-func (lhs *MplsLabelRange) Equal(rhs *MplsLabelRange) bool {
- if lhs == nil || rhs == nil {
- return false
- }
- if lhs.MinLabel != rhs.MinLabel {
- return false
- }
- if lhs.MaxLabel != rhs.MaxLabel {
- return false
- }
- return true
-}
-
//struct for container gobgp:state
type LongLivedGracefulRestartState struct {
// original -> gobgp:enabled
@@ -4289,8 +4268,6 @@ type Global struct {
AfiSafis []AfiSafi `mapstructure:"afi-safis"`
// original -> rpol:apply-policy
ApplyPolicy ApplyPolicy `mapstructure:"apply-policy"`
- // original -> gobgp:mpls-label-range
- MplsLabelRange MplsLabelRange `mapstructure:"mpls-label-range"`
}
func (lhs *Global) Equal(rhs *Global) bool {
@@ -4334,9 +4311,6 @@ func (lhs *Global) Equal(rhs *Global) bool {
if !lhs.ApplyPolicy.Equal(&(rhs.ApplyPolicy)) {
return false
}
- if !lhs.MplsLabelRange.Equal(&(rhs.MplsLabelRange)) {
- return false
- }
return true
}