From be9918a163a20a7a885dc9206a733d983ee76b3a Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 2 Nov 2016 00:03:41 -0700 Subject: remove label allocation completely Signed-off-by: FUJITA Tomonori --- config/default.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'config/default.go') 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 { -- cgit v1.2.3