FUJITA Tomonori
5798cfaf26
doc: replace MonitorPeer with WatchEvent API
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com >
2021-12-14 01:11:44 +00:00
FUJITA Tomonori
6eeabdf01b
proto: replace 'as' with 'asn'
...
For consistency, always use 'asn' instead of 'as', 'as_number', etc.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com >
2021-12-11 01:36:20 +00:00
FUJITA Tomonori
f871b60c01
doc: fix excample code of library usages
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com >
2021-12-08 13:09:34 +00:00
FUJITA Tomonori
c593d7c8b3
switch to Go API v2 for protobuf
...
seems that sticking to Go API v1 for protobuf is headache for projects
using GoBGP.
This breaks the compatibility so bumps up the major version to 3.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com >
2021-12-08 07:22:50 +00:00
FUJITA Tomonori
c17003e71b
docs: add aspath attribute to library usage
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com >
2019-08-01 14:34:55 +09:00
FUJITA Tomonori
259d9b5264
docs: add v6 route example to lib
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2019-02-19 12:37:27 +09:00
FUJITA Tomonori
6b05d9db0f
api: rename NlriAny in api.Path to Nlri
...
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-16 16:49:49 +09:00
FUJITA Tomonori
99556f9cfc
server: change monitor API design
...
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-12 09:30:20 +09:00
FUJITA Tomonori
076d019b75
make gRPC server private
...
No need to be exported.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2018-11-09 19:10:43 +09:00
FUJITA Tomonori
809f941df9
docs/lib.md: add PeerMonitor API
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2018-11-09 08:55:11 +09:00
FUJITA Tomonori
97ad6b32ee
api: change Family
...
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 >
2018-08-28 15:36:50 +09:00
FUJITA Tomonori
834fb80a88
fix library usage example
...
also enable the CI for it again.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2018-08-10 13:38:13 +09:00
FUJITA Tomonori
e4031c14a5
api: decrease the dependency
...
move grpc_server.go to server/
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2018-07-06 23:56:54 +09:00
IWASE Yusuke
008f34053c
*.md: Improvements for markdownlint
...
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com >
2018-04-02 16:16:01 +09:00
FUJITA Tomonori
d65df0b045
replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus
...
The usage of "github.com/sirupsen/logrus" is recommended.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2017-06-07 21:04:11 +09:00
ISHIDA Wataru
9a45ed09b0
cli: add current option to monitor commands
...
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2017-02-15 00:10:15 +09:00
ISHIDA Wataru
59997e8daa
server: move default config setting logic inside BgpServer's methods
...
We have three ways to configure gobgp. config file, grpc api and native lib.
Every methods eventually call (*server.BgpServer).Start() or
(*server.BgpServer).AddNeighbor() when starting bgp server or adding
neighbors.
This commit moves default config setting logic inside them to remove
redundant code in grpc_server.go and simplify the usage of native lib.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-07-29 16:31:35 +09:00
ISHIDA Wataru
f3ae68b9f2
config: curve out code specific to default global config setting
...
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-07-29 16:31:35 +09:00
ISHIDA Wataru
e97a59c539
config: curve out code specific to default neighbor config setting
...
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-07-29 16:31:35 +09:00
FUJITA Tomonori
af98780240
move grpc_server.go from server/ to api/
...
Now all gRPC code was moved to api/.
server/ isn't dependent on gRPC anymore.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-07-29 00:43:52 +09:00
FUJITA Tomonori
5aea2d93fd
doc: update lib.md with the new native APIs
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-07-27 10:28:01 +09:00
FUJITA Tomonori
4635014cbb
remove gRPC dependency from table/
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-07-20 06:50:15 +09:00
FUJITA Tomonori
d59f1b147e
remove REQ_GRPC_ADD_NEIGHBOR
...
replace REQ_GRPC_ADD_NEIGHBOR with REQ_ADD_NEIGHBOR
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-07-20 04:24:47 +09:00
ISHIDA Wataru
aca6fd6ad4
server: refactoring for monitorbestchanged api. use watcher infra
...
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-06-06 12:43:20 +09:00
ISHIDA Wataru
ed23fbe22b
docs: another update for lib.md
...
fix 9f6b62a5e5
[skip ci]
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-06-01 10:36:03 +09:00
ISHIDA Wataru
9f6b62a5e5
docs: update lib.md
...
[skip ci]
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-05-31 03:59:23 +00:00
ISHIDA Wataru
425e947b4c
docs: update lib.md
...
[ci skip]
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2016-04-27 17:10:57 +00:00
FUJITA Tomonori
311324fab8
move packet/*.go to packet/bgp/*.go for Go's convention
...
Later, we move non-bgp protocol stuff like mrt under their own
direcotries.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-03-31 13:19:17 +09:00
FUJITA Tomonori
aaa6004f5d
docs: lib.md: update gRPC API usage
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp >
2016-02-27 04:12:49 -08:00
Manuel de Brito Fontes
e0fb668471
Update lib demo to fix compilation errors
2015-12-23 10:58:05 -03:00
ISHIDA Wataru
7a0bbc22d8
docs: add a document about how to use gobgp as a bgp library
...
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp >
2015-12-15 12:09:51 +09:00