commit | 8f73fe0dd75cb6f29c0a804627e1716a09931e0b | [log] [tgz] |
---|---|---|
author | Girish Kumar <girish_kumar@infosys.com> | Mon Dec 09 13:19:37 2019 +0000 |
committer | Girish Kumar <girish_kumar@infosys.com> | Mon Dec 16 18:28:01 2019 +0000 |
tree | f6f80da75cf2ee319db7596942998d0cf110fc12 | |
parent | 3d6330382ccd38ceebd1ffd7a8381cffa6c635bd [diff] |
[VOL-2260] Guard Openolt against Wrong Tech Profile configuration Added checks to prevent crashing of Openolt container in case of invalid values of SchedulingPolicy, Direction, AdditionalBW and DiscardPolicy attributes in Technology Profile json. Change-Id: I27afc753c86f925d7eb12a5bd2bbdb8f8aa88569
This project uses Go Modules https://github.com/golang/go/wiki/Modules to manage dependencies. As a local best pratice this project also vendors the dependencies. If you need to update dependencies please follow the Go Modules best practices and also perform the following steps before committing a patch:
go mod tidy
go mod verify
go mod vendor
voltha-protos
or voltha-lib-go
If you want to build/test using a local copy or voltha-protos
or voltha-lib-go
this can be accomplished by using the environment variables LOCAL_PROTOS
and LOCAL_LIB_GO
. These environment variables should be set to the filesystem path where the local source is located, e.g.
LOCAL\_PROTOS=$HOME/src/voltha-protos LOCAL\_LIB\_GO=$HOME/src/voltha-lib-go
When these environment variables are set the vendored versions of these packages will be removed from the vendor
directory and replaced by coping the files from the specified locations to the vendor
directory. NOTE: this means that the files in the vendor
directory are no longer what is in the git
repository and it will take manual git
intervention to put the original files back.