15 Commits
Author SHA1 Message Date
wenovusandFUJITA Tomonori 340030dc28 Fix imports 2023-10-31 22:42:13 +09:00
SkalaNetworks 4364a26a7f feat(config): autoreload on config changes 2023-10-17 17:27:43 +00:00
wenovusandFUJITA Tomonori aa0cf39f37 Export Generated BGP Configuration Code
Move internal/pkg/config -> pkg/config/oc

Background: #2593
2023-09-30 09:53:37 +09:00
Tobias Klauser 88da915c97 Use standard library context package
Use Go's standard library context package instead of the
golang.org/x/net/context package. Package context has been available in
the standard library since Go 1.7 and x/net/context.Context is merely an
alias for the standard library type.
2023-04-18 13:56:58 +02:00
FUJITA Tomonori f75661f1c3 proto: add DumpType to EnableMrtRequest
Signed-off-by: FUJITA Tomonori <[email protected]>
2021-12-10 13:43:06 +00:00
Jakub Chábek 42117d3909 Make iternal/pkg/apiutil public under pkg/apiutil 2021-12-08 17:51:24 +01:00
Manuel Rüger dc67485336 .github/ci: Replace staticcheck with golang-ci-lint 2021-12-08 13:40:16 +01:00
FUJITA Tomonori 97aefbb24a decouple logging
gobgp is tightly coupled with logrus and uses the global logrus logger
instance. The uses of gobgp library can't use other logging libraries.

Signed-off-by: FUJITA Tomonori <[email protected]>
2021-12-08 10:39:16 +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 <[email protected]>
2021-12-08 07:22:50 +00:00
Carl BaldwinandFUJITA Tomonori fbe0ca9ede Document config API and provide examples 2019-08-28 09:06:20 +09:00
Carl BaldwinandFUJITA Tomonori 8d9d5c91e9 Pass context through configuration code 2019-08-28 09:06:20 +09:00
Carl BaldwinandFUJITA Tomonori 102a5f79d0 Move ReadConfigFileOnSighup to gobgpd main
Reloading the config file on SIGHUP is behavior specific to gobgpd.
Attempts to expose it through the config API was awkward and could
make the api more confusing to use. This change moves that
functionality up into the gobgpd main and out of the library.
2019-08-28 09:06:20 +09:00
Carl BaldwinandFUJITA Tomonori 5d7bf46000 Remove last remants of internal_cfg 2019-08-28 09:06:20 +09:00
Carl BaldwinandFUJITA Tomonori 8900db7551 Switch away from channel for one-off dry run 2019-08-28 09:06:20 +09:00
Carl BaldwinandFUJITA Tomonori 8faa1a704b Move code to new public config package 2019-08-28 09:06:20 +09:00