Updated tools version to 2.0.0

Also merged lint-style (gofmt) into golangci-lint (enabled gofmt).
Also removed redundant lint-sanity (govet) which is already checked by golangci-lint.
Also made minor code changes to pass new golangci-lint tests.
Also changed lint-mod slightly so it reverts any changes it makes go.mod, go.sum, and vendor/.

VOL-2647

Change-Id: I2919e65ae29e01c81d1bf7ef113c3189e8227939
26 files changed
tree: b28386fef1ca0739450a164fb5ac11d49c8d23ea
  1. .gitignore
  2. .gitreview
  3. .golangci.yml
  4. LICENSE
  5. Makefile
  6. README.md
  7. VERSION
  8. cmd/
  9. docker/
  10. go.mod
  11. go.sum
  12. internal/
  13. run.sh
  14. vendor/
README.md

Ofagent-go

Ofagent-go provides an OpenFlow management interface for Voltha. It is a rewrite in Golang of the original ofagent that was written in python / twisted. The main driver behind the work was to introduce true concurrency to the agent for performance/scalability reasons.

Building

  1. Outside $GOPATH

    1. Read-only git clone https://github.com/opencord/ofagent-go.git
    2. To Contribute git clone https://gerrit.opencord.org/ofagent-go
  2. Compile go build -mod=vendor -o ./build/ofagent-go

Running

  • Normal Logging
    • ./build/ofagent-go -ofaddress=localhost openflowPort=6653 -volthaAddress=localhost -volthaPort=50057
  • Debug Logging
    • ./build/ofagent-go -debug -ofaddress=localhost openflowPort=6653 -volthaAddress=localhost -volthaPort=50057