Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 779 Bytes

BUILD.md

File metadata and controls

26 lines (17 loc) · 779 Bytes

Development Guide

Building the development environment

You need a working Go environment (1.11 or newer).

$ go get -u github.com/golang/dep/cmd/dep
$ go get github.com/osrg/gobgp
$ cd $GOPATH/src/github.com/osrg/gobgp && dep ensure

Now ready to modify the code and build two binaries, cmd/gobgp and cmd/gobgpd.

Layout

The GoBGP project adopts Standard Go Project Layout.

Changing the gRPC API

If you change the gRPC API, generate api/gobgp.pb.go in the following way:

$ protoc -I ~/protobuf/src -I ${GOBGP}/api --go_out=plugins=grpc:${GOBGP}/api \
         ${GOBGP}/api/gobgp.proto ${GOBGP}/api/attribute.proto ${GOBGP}/api/capability.proto