Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Driver with some issue: alarm(pool or other mode).
if driver have some issues, the hpa capabilities will be empty.

...

3.Driver code Management

For python language driver, we put it into multi-cloud openstack plugin.

For golang language driver, we put it into multi-cloud kubernetes plugin.

...

4.Add New hardware feature driver

  1. The hardware vendor determines whether to share the driver to community.
  2. If vendor share the driver to community, then submitted the driver code to multi-cloud repo, then we  will put the driver to the docker image and release it.
  3. if vendor didn't share the driver to community, he/she can make new image base on the releasing docker image and upload to local docker image repo, then change the oom helm charts file to point this image repo.

...

           add hpa-discovery-driver2(device vendor2)

...

5.Driver Version Control

We will put HPA discovery drivers as pip package to release pip REPO. name like onap-device-driver-<drivername>

...

-<version>

when we release the plugin, we will add the driver of pip package to the docker.

5.1 Construct package:

$ python setup.py build

...

$ python setup.py bdist_wheel

$

5.2 upload package

  1. Create pypirc: The Pypirc file stores the PyPi repository information. Create a file in the home director for *nix ~/.pypirc 
  2. And add the following content to it. Replace javatechy with your username.
    [distutils] 
    index-servers=pypi
    [pypi] 
    repository = https://upload.pypi.org/legacy/ 
    username =haibin

      3.  To upload your dist/*.whl file on PyPi, use Twine:

    python

...

 -m twine upload dist/*


6. Usage

For python, run below command in create docker image

...

$ python setup.py install

...

7. Test

Unit Tests with tox, Integration test will use SRIOV-NIC as example.