summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-11-23api: move remote_cap and local_cap to PeerState from PeerConfFUJITA Tomonori
Both should be in PeerState like OpenConfig. Also remove unused supported_capabilities. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-17server: fix handleRouteRefresh and softResetOutFUJITA Tomonori
both assume that getBestFromLocal() returns filtered paths by policies but it doesn't. Paths filtered by policies are returned as withdraw paths. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16api: rename NlriAny in api.Path to NlriFUJITA Tomonori
Also rename PathAttrsAny to PathAttrs. Both are the first choice rather than the binary format members. Support SortType member to ListPathRequest to add an option to return unordered paths. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16server: fix handleRouteRefresh()FUJITA Tomonori
Can't modify a Path object in a table. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16use google/protobuf/timestamp.protoFUJITA Tomonori
use google/protobuf/timestamp.proto instead of our own way to represent time. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16packet: fix ValidateAttribute() to handle ipv6 addresssFUJITA Tomonori
fixes #1893 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-16packet: fix NewPathAttributeNextHop() to handle ipv6 addresssFUJITA Tomonori
PathAttributeNextHop struct can handle ipv6 address but NewPathAttributeNextHop() can't. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-15travis: fix go vetFUJITA Tomonori
The error message of 'go vet' goes to stderr so the length of the stdout is zero. Always the test passes successfully. 'go vet' exits with non zero when something wrong happens. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-14Add quotes to short option valueCarl Baldwin
This broke vet for me. Not sure why it didn't break in CI.
2018-11-14Fix Statistics Report in BMPEiichiro Watanabe
2018-11-13server: change List API designFUJITA Tomonori
https://github.com/osrg/gobgp/issues/1763#issuecomment-437594975 Follow Chris's proposal; more consistent with gRPC streaming API. Also supports context properly. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-13server: fix inconsistent receiver name warningsFUJITA Tomonori
fix 'receiver name ss should be consistent with previous receiver name s for BgpServer'. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-13server: unexport BgpServer's Listeners()FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-13add anyNlri toPathApi when path.IsWithdrawjack
2018-11-13server: Fix wrong value of RouteMonitoringPolicy from grpcEiichiro Watanabe
2018-11-12cmd/gobgp: don't use timeout context for requestsFUJITA Tomonori
timeout context is for only connecting. We should refactor the code to avoid global context variant. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-12Fix intervals for MRTEiichiro Watanabe
2018-11-12Support AdminDown from configEiichiro Watanabe
2018-11-12server: change monitor API designFUJITA Tomonori
https://github.com/osrg/gobgp/issues/1763#issuecomment-437594975 Follow Chris's proposal; consistent with the rest of the APIs. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-10server: avoid deadlockEiichiro Watanabe
peer.configuredRFlist() uses lock in itself.
2018-11-10server: avoid deadlockEiichiro Watanabe
toConfig() uses lock in itself.
2018-11-10server: avoid deadlockEiichiro Watanabe
peer.ID() uses lock in itself.
2018-11-09make gRPC server privateFUJITA Tomonori
No need to be exported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-09server: fix deadlock regressionFUJITA Tomonori
introduced by 433440067d8084556a31ffd4b8bfa8671bfcaab2 Reported-by: Eiichiro Watanabe <a16tochjp@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-09added timestampYoichi Hariguchi
2018-11-09docs/lib.md: add PeerMonitor APIFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-09server: Fix some values are all off by one in MRT TABLEDUMP_V2Eiichiro Watanabe
2018-11-08server: Fix timestamp when msg is nilEiichiro Watanabe
2018-11-08server: Add PeerTable APIFUJITA Tomonori
go native API that corresponds to MonitorTable gRPC API. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-08server: Add PeerMonitor APIFUJITA Tomonori
go native API that corresponds to MonitorPeer gRPC API. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07server: unexported Watcher stuffFUJITA Tomonori
Replace it with the new API using api/. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07gobgp: merge cmd package into mainFUJITA Tomonori
Make everything private. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07gobgp: unexport cmd/FUJITA Tomonori
Only stuff in pkg/ should be exported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07server: fix isIBGPPeer() to handle local-as configurationFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07api: fix regression that match set option has no default valueoc
The commit 000589f3c "api: Implement UpdatePolicy()" introduced a regression: if match-set-options is not defined in config file, gobgpd starts with error: failed to get policy info: not found... This fix set match-set-options to default when needed.
2018-11-07remove influxdb from dependencyFUJITA Tomonori
Should have been committed with the d91fb3d35f5baf0c965381be8f5ecf5b0c7fecea Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-07gobgp: replace deprecated grpc WithTimeoutFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-06gobgp: delete c-shared-libFUJITA Tomonori
Now the gRPC API doesn't require the binary wire-format for path attributes. No need for the library for C. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-30server: unexport constFUJITA Tomonori
No need to export Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-30server: unexport fsm stuffFUJITA Tomonori
No need to export the bgp peer internals. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29Use assertEqual in python testsCarl Baldwin
In trying to run the local tests, I found that changing these assertTrue calls to assertEqual helped me out. With this, a failure shows the actual and expected values rather than just saying "True is not False" which is less helpful.
2018-10-29server: unexport Peer adn PeerGroupFUJITA Tomonori
No need to export them. Also fixed golint errors. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29server: unexport TCPDialer/TCPListener/TCPSockopt stuffFUJITA Tomonori
No need to export them. Also fixed golint errors. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29server: unexport NewRoutingPolicyFromApiStruct()FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29server: remove collector supportFUJITA Tomonori
After removing the doc about collector support, nobody has complained or asked a question. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29server: unexport prkiFUJITA Tomonori
rpki code really needs refactoring for cleaning the APIs. Until then, let's unexport it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28server: make NewNeighborFromAPIStruct() and NewPeerGroupFromAPIStruct() ↵FUJITA Tomonori
unexported Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28server: make NewGlobalFromAPIStruct() unexportedFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28server: make NewRoaListFromTableStructList() unexportedFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28server: make NewPolicyFromApiStruct() unexportedFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>