Skip to content
Snippets Groups Projects
Commit 9c49ef03 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'tf-state-mystery' into 'develop'

Tf state mystery

See merge request cocsn/gosdn!151
parents 5e53f43f 29687c2a
No related branches found
No related tags found
No related merge requests found
Pipeline #68988 passed
# Collection of programming stuff
## Dependencies
* github.com/spf13/cobra: used for basic cli of gosdn, such as starting the daemon, get versioning info etc
* grpc
* ygot
## Structure of the code
main.go: main() function
nucleus/: core functionality of gosdn
ygot (yang for go tools).
Checkout this in go: go get github.com/openconfig/ygot/ygot
## Usefull things to know
Regenerate gRPC code (https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code)
* ( cd ~/go/src/github.com/grpc-go/cmd/protoc-gen-go-grpc/ && go install . )
*
protoc \
--go_out=Mgrpc/service_config/service_config.proto=/internal/proto/grpc_service_config:. \
--go-grpc_out=Mgrpc/service_config/service_config.proto=/internal/proto/grpc_service_config:. \
--go_opt=paths=source_relative \
--go-grpc_opt=paths=source_relative \
cliInterface/gosdnCLI.proto
Generate the ygot code:
just type: go generate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment