summaryrefslogtreecommitdiffhomepage
path: root/pkg
AgeCommit message (Collapse)Author
2018-11-26support received, accepted, and advertised counters per familyFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-25api: remove AddPaths from Peer and PeerGroupFUJITA Tomonori
AddPaths in AfiSafi should be used; it can handle configuration per family. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-11-25api: move RouterId to PeerState from PeerConfFUJITA Tomonori
It's not configuration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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-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-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-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-07server: fix isIBGPPeer() to handle local-as configurationFUJITA Tomonori
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-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>
2018-10-28move NewAPIRoutingPolicyFromConfigStruct() from server/FUJITA Tomonori
The config is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for config/. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28move NewAPIPolicyAssignmentFromTableStruct() from server/FUJITA Tomonori
The table is an internal package so it should not be exported. NewAPIPolicyAssignmentFromTableStruct() is approprate for table/. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-28move exported functions to generate api structs from config struct in server/FUJITA Tomonori
NewPeerFromConfigStruct() NewPeerGroupFromConfigStruct() NewGlobalFromConfigStruct() The config is an internal package so they should not be exported. We will remove the usage of the config in server/. This is a part of the goal. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-23server: deal with mac mobility seqence number in path from apiwanghonghao
2018-10-21Supporting Zebra API version 6 which is used in FRRouting version 6Hitoshi Irino
2018-09-18fsm: get rid of dead lockwanghonghao
2018-08-31fix closing listening socket blockedFUJITA Tomonori
with go v1.11, closing a listening socket is blocked and unittests fail due to timeout. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-28api: remove unused membersFUJITA Tomonori
fixes #1816 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-28api: change FamilyFUJITA Tomonori
fixes #1812 Avoid the cast and use strightforward data strcuture; two variables for afi and safi instead of squashing two into one variable. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>