diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-11 16:10:46 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-17 10:44:44 +0900 |
commit | ee68181ce1be8af7faa4c9ee16a81e513e506499 (patch) | |
tree | 71f7a2ac76154e27110094314463d946daa42124 /config/default.go | |
parent | 304523e48aab7aa7bb0063f63ed61de84a6d0b42 (diff) |
server: minor refactoring of zebra related code
move things to more appropriate place
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
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 21b95758..536b7a1e 100644 --- a/config/default.go +++ b/config/default.go @@ -33,6 +33,10 @@ func SetDefaultConfigValues(v *viper.Viper, b *Bgp) error { } } + if !v.IsSet("global.zebra.url") { + b.Global.Zebra.Url = "unix:/var/run/quagga/zserv.api" + } + if !v.IsSet("global.afi-safis") { b.Global.AfiSafis = []AfiSafi{} for k, _ := range AfiSafiTypeToIntMap { |