Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
29687c2a
Commit
29687c2a
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
delete outdated file
parent
ac2bbb70
No related branches found
No related tags found
1 merge request
!151
Tf state mystery
Pipeline
#68987
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Programming.md
+0
-33
0 additions, 33 deletions
Programming.md
with
0 additions
and
33 deletions
Programming.md
deleted
100644 → 0
+
0
−
33
View file @
ac2bbb70
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment