summaryrefslogtreecommitdiffhomepage
path: root/config/default.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-19 22:14:11 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-19 22:14:11 +0900
commitaa9af495182e822b84201e1d708cda7d2d090313 (patch)
tree0a28581f78fa89a6b77036ea518c580f86087001 /config/default.go
parentfb91965dd47045339a78f2231169a9d32be52985 (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.go5
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
}