summaryrefslogtreecommitdiffhomepage
path: root/gobgpd/main.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-28 12:59:28 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-28 12:59:28 +0900
commit427e9efa79b3cac87a5628698ef0662088fd856a (patch)
tree5e508afbab87096899e6c07fc121489279f6a9bf /gobgpd/main.go
parent9abc68f4e7327ce856a1e05aac64c576c26c1258 (diff)
add RPKI support
Just get info from ROA server. Not varidate any route yet. Currently, "--rpki-server" option enables RPKI: $ gobgpd --rpki-server 210.173.170.254:323 We'll use the configuration file for this later. You can see ROAs via CLI: $ gobgp rpki For ipv6, $ gobgp rpki -a v6 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd/main.go')
-rw-r--r--gobgpd/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go
index 89cd0cb8..9d96401b 100644
--- a/gobgpd/main.go
+++ b/gobgpd/main.go
@@ -46,6 +46,7 @@ func main() {
DisableStdlog bool `long:"disable-stdlog" description:"disable standard logging"`
EnableZapi bool `short:"z" long:"enable-zapi" description:"enable zebra api"`
ZapiURL string `long:"zapi-url" description:"specify zebra api url"`
+ RPKIServer string `long:"rpki-server" description:"specify rpki server url"`
}
_, err := flags.Parse(&opts)
if err != nil {
@@ -141,7 +142,7 @@ func main() {
reloadCh := make(chan bool)
go config.ReadConfigfileServe(opts.ConfigFile, configCh, reloadCh)
reloadCh <- true
- bgpServer := server.NewBgpServer(bgp.BGP_PORT)
+ bgpServer := server.NewBgpServer(bgp.BGP_PORT, opts.RPKIServer)
go bgpServer.Serve()
// start grpc Server