Run API client remotely - ganeshahv/Contrail_SRE GitHub Wiki
The following Python libraries are required to run API client.
- vnc_api
 - cfgm_common
 
They are installed in the container of configuration API server on Contrail controller during deployment. To run client out of the container, one option is to create a sandbox/directory, copy libraries there and run client there. The sandbox can be created anywhere having connectivity to API server.
Here is an example to create a sandbox
mkdir -p sandbox
cd sandbox
docker cp config_api_1:/usr/lib/python2.7/site-packages/vnc_api ./
docker cp config_api_1:/usr/lib/python2.7/site-packages/cfgm_common ./
Copy the two directories recursively to your box.
Use /usr/bin/python3 on the box to run scripts such as these: https://github.com/ganeshahv/Contrail_SRE/blob/master/vnc_api/script_to_create_vpg.py