blob: e334e0c030ee8e4b9a2db939efc92bf6061995f3 [file] [log] [blame]
Chris Donley030be9d2017-10-02 09:47:23 -07001VNF Package Tool
2================
3
4Provided tools
5--------------
6
7* VNF Package Builder - creates a CSAR file based on inputs provided by the VNF product DevOps engineer
8* VNF Package Validator - validates the content of the VNF packages to ensure that everything has been built correctly
9* VNF Package Extractor - extracts VNF product model and executables from the CSAR file
Chris Donleyab6c6f02017-10-05 17:09:49 -070010* VNF Package Parser - translates VNF product blueprint into a format consumable by ONAP components
Chris Donley030be9d2017-10-02 09:47:23 -070011* VNF Package Dry Run - performs a "dry run" install to ensure that the package can be deployed during instantiation
12 
13The tools are provided in a form of a shared library (Python module) that can be used in other projects. A CLI is also provided out-of-the box for DevOps to use the library with their scripts and autoamtion framework.
14
Chris Donleyab6c6f02017-10-05 17:09:49 -070015Repository Name: vnfsdk/pkgtools
Chris Donley030be9d2017-10-02 09:47:23 -070016
Chris Donleyab6c6f02017-10-05 17:09:49 -070017Clone command: git clone http://gerrit.onap.org/r/vnfsdk/pkgtools
Chris Donley030be9d2017-10-02 09:47:23 -070018
19Installation
20------------
21Python module with CLI is installed by Python pip command. It is possible to install into a virtual environment (virtualenv).
Chris Donleyab6c6f02017-10-05 17:09:49 -070022The following commands are executed in the cloned repository directory:
23
Chris Donley030be9d2017-10-02 09:47:23 -0700241. pip install -r requirements.txt
Chris Donleyab6c6f02017-10-05 17:09:49 -070025 Install all required dependencies
Chris Donley030be9d2017-10-02 09:47:23 -0700262. pip install .
27
Lianhao Lu020ed5c2017-10-12 11:08:34 +080028Or run the following commands in the cloned repository directory to install:
29
301. python setup.py install
31
32Install VNF SDK tools package
Chris Donley030be9d2017-10-02 09:47:23 -070033-----------------------------
34Usage
Chris Donleyab6c6f02017-10-05 17:09:49 -070035
Chris Donley030be9d2017-10-02 09:47:23 -070036* Create CSAR by specifying a directory
Lianhao Lu020ed5c2017-10-12 11:08:34 +080037 vnfsdk csar-create -d DESTINATION [--manifest MANIFEST] [--history HISTORY] [--tests TESTS] [--licenses LICENSES] source entry
Chris Donleyab6c6f02017-10-05 17:09:49 -070038
Chris Donley030be9d2017-10-02 09:47:23 -070039* Extract CSAR content
Chris Donleyab6c6f02017-10-05 17:09:49 -070040 vnfsdk csar-open -d DESTINATION source
41
Chris Donley030be9d2017-10-02 09:47:23 -070042* Validate CSAR content
Chris Donleyab6c6f02017-10-05 17:09:49 -070043 vnfsdk csar-validate source
Chris Donley030be9d2017-10-02 09:47:23 -070044 
45All commands have -h switch which displays help and description of all paramaters.