summaryrefslogtreecommitdiffhomepage
path: root/config/default.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/default.go
parentc7653aa9d4276098a7a6b5ade5ffce5bf5d089e8 (diff)
remove label allocation completely
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/default.go')
-rw-r--r--config/default.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/config/default.go b/config/default.go
index e9b972cf..05fe2db8 100644
--- a/config/default.go
+++ b/config/default.go
@@ -13,8 +13,6 @@ const (
DEFAULT_HOLDTIME = 90
DEFAULT_IDLE_HOLDTIME_AFTER_RESET = 30
DEFAULT_CONNECT_RETRY = 120
- DEFAULT_MPLS_LABEL_MIN = 16000
- DEFAULT_MPLS_LABEL_MAX = 1048575
)
func defaultAfiSafi(typ AfiSafiType, enable bool) AfiSafi {
@@ -211,16 +209,7 @@ func SetDefaultGlobalConfigValues(g *Global) error {
if len(g.Config.LocalAddressList) == 0 {
g.Config.LocalAddressList = []string{"0.0.0.0", "::"}
}
-
- if g.MplsLabelRange.MinLabel == 0 {
- g.MplsLabelRange.MinLabel = DEFAULT_MPLS_LABEL_MIN
- }
-
- if g.MplsLabelRange.MaxLabel == 0 {
- g.MplsLabelRange.MaxLabel = DEFAULT_MPLS_LABEL_MAX
- }
return nil
-
}
func SetDefaultConfigValues(b *BgpConfigSet) error {