diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-19 22:14:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-19 22:14:11 +0900 |
commit | aa9af495182e822b84201e1d708cda7d2d090313 (patch) | |
tree | 0a28581f78fa89a6b77036ea518c580f86087001 /config/default.go | |
parent | fb91965dd47045339a78f2231169a9d32be52985 (diff) |
config file support rpki configuration
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/default.go')
-rw-r--r-- | config/default.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/default.go b/config/default.go index 283ee629..94f5dc9d 100644 --- a/config/default.go +++ b/config/default.go @@ -98,5 +98,10 @@ func SetDefaultConfigValues(md toml.MetaData, bt *Bgp) error { } } } + for _, r := range bt.RpkiServers.RpkiServerList { + if r.RpkiServerConfig.Port == 0 { + r.RpkiServerConfig.Port = bgp.RPKI_DEFAULT_PORT + } + } return nil } |