commit | eb2e9555469bdc078229b3979c6f38872f783b1f | [log] [tgz] |
---|---|---|
author | Devmalya Paul <Devmalya.Paul@radisys.com> | Tue Aug 27 19:42:00 2019 -0400 |
committer | David K. Bainbridge <dbainbri@ciena.com> | Tue Sep 17 15:04:43 2019 -0700 |
tree | 315f4b9f3e540fe984135e7dd2c2b95e1e0edb2a | |
parent | 7f1ba89e9a9cd422d83b8d224af719971818b496 [diff] |
VOL-1845 : Support for delete device in openolt adapter This commit is for the handling of delete device. The changes are done to handle the request for delete device. This includes the clearing of all data related to the device in KV store and reboot of device to reset the device. This commit has dependency in voltha-go so that needs to be merged first. Please refer this review link https://gerrit.opencord.org/#/c/15084/ Updated to dep ensure above voltha-go patch set. Also typo and make lint/sca fixes. Change-Id: I53f16022c6902d498dad30e9b7d0ff50bf156347
Assuming the VOLTHA2.0 environment is made using the quickstart.md in voltha-go.
Dependencies are committed to the repos as per current standard practice. If you need to update them you can do so with dep. This includes the voltha-protos and voltha-go dependencies.
Ensure your GOPATH variable is set according to the quickstart Create a symbolic link in the $GOPATH/src tree to the voltha-openolt-adapter repository:
mkdir -p $GOPATH/src/github.com/opencord ln -s ~/repos/voltha-openolt-adapter $GOPATH/src/github.com/opencord/voltha-openolt-adapter
Install dep for fetching dependencies
mkdir -p $GOPATH/bin curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh Pull and build dependencies for the project. This may take a while. This may likely update versions of 3rd party packages in the vendor folder. This may introduce unexpected changes. If everything still works feel free to check in the vendor updates as needed. cd $GOPATH/src/github.com/opencord/voltha-go/ dep ensure If you are using a custom local copy of protos or voltha-go Just export LOCAL_PROTOS=true or LOCAL_VOLTHAGO=true to use that instead, assuming you have set them up on GOPATH. See the quickstart. mkdir -p ~/source cd ~/source git clone https://github.com/opencord/voltha-openolt-adapter.git cd voltha-openolt-adapter make build
This will create the voltha-openolt-adapter-go docker image
$ docker images | grep openolt voltha-openolt-adapter latest a0f2ba883655 5 seconds ago 842MB voltha-openolt-adapter latest-py a0f2ba883655 5 seconds ago 842MB voltha-openolt-adapter latest-go 801070129648 About a minute ago 34.5MB
In case the python voltha openolt adapter is started, stop the python voltha openolt docker container
To start the GOlang based OpenOLT adapter
cd ~/source/voltha-go docker-compose -f compose/system-test-openolt-go.yml up -d
To start the Python based adapter based OpenOLT adapter
cd ~/source/voltha-go docker-compose -f compose/system-test.yml up -d
The functionality of OLT activation can be verified through BBSIM Follow the below steps to start BBSIM and provision it through VOLTHA-CLI https://github.com/opencord/voltha-bbsim/blob/master/README.md