commit | 1110ef21952293ce2a75e12b036b156b49021745 | [log] [tgz] |
---|---|---|
author | Girish Gowdru <ggowdru@radisys.com> | Mon Jun 24 11:17:59 2019 -0400 |
committer | Girish Gowdru <ggowdru@radisys.com> | Mon Jun 24 11:19:27 2019 -0400 |
tree | 7f57613d21f3632060b9ebd903a9df878c67bf96 | |
parent | 28c3e824baa8332dfd7d3952c18c49a9b68dcfbd [diff] |
[VOL-1703]: While adding flow for a device, adapter makes sync call to core to fetch the OLT device structure. The NNI Intf ID was then fetched from the OLT device structure. This sync call during flow processing takes more seconds (2-3~ secs), but core has default timeout 500ms and used to timeout. On failure it used to re-initiate the whole procedure again. This was going on in an endless loop. To fix this problem, the NNI Intf ID is cached locally in the adapter, and there is no query initiated to Core. Change-Id: I0f9a333f44ec528517d23342c5eb7fdf1affd2e2
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. cd ~/source/voltha-openolt-adapter
Get the latest code changes
git pull
To build the docker image
make build
This will create the voltha-openolt-adapter-go docker image
$ docker images | grep openolt voltha-openolt-adapter-go latest 38688e697472 2 hours ago 37.3MB
In case the python voltha openolt adapter is started, stop the python voltha openolt docker container
To start the GOlang based OpenOLT adapter
DOCKER_HOST_IP= docker-compose -f compose/adapters-openolt-go.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