/bio-rd

bio routing is a project to create a versatile, fast and reliable routing daemon in Golang. bio = BGP + IS-IS + OSPF

Primary LanguageGoApache License 2.0Apache-2.0

bio-rd

A re-implementation of BGP, IS-IS and OSPF in go. We value respect and robustness!

Build Status Coverage Status Go ReportCard

Building

We use Bazel to build bio-rd.

Build

bazel build //:bio-rd
bazel-bin/linux_amd64_stripped/bio-rd -arguments go -here

or

bazel run //:bio-rd -- -arguments go -here

Run Tests

bazel test //...

Update Bazel BUILD files

To regenerate BUILD files (for both the project and vendored libraries), you will need to run the following:

bazel run //:gazelle -- update

Be sure to commit the changes.

Update vendor/dependencies

After updating Gopkg.toml, run

bazel build //vendor/github.com/golang/dep/cmd/dep
bazel-bin/vendor/github.com/golang/dep/cmd/dep/linux_amd64_stripped/dep use
# hack: dep of dep gives us these, and it breaks gazelle
rm -rf vendor/github.com/golang/dep/cmd/dep/testdata
rm -rf vendor/github.com/golang/dep/internal/fs/testdata/symlinks/dir-symlink