diff options
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index 2170e0dd..9f58a9b8 100644 --- a/config/default.go +++ b/config/default.go @@ -47,6 +47,10 @@ func SetDefaultConfigValues(md toml.MetaData, bt *Bgp) error { } } + if bt.Global.ListenConfig.Port == 0 { + bt.Global.ListenConfig.Port = bgp.BGP_PORT + } + if _, ok := global["Global.MplsLabelRange.MinLabel"]; !ok { bt.Global.MplsLabelRange.MinLabel = DEFAULT_MPLS_LABEL_MIN } |