Loading

Sorry

Your web browser doesn't support some required capabilities.

This interactive demo works best with the latest version of Chrome, Firefox, or Safari.

Sorry

An error occurred. Please reload the page or download again from the VMware Demo Library:

For VMware partners:
www.vmware.com/go/partnerdemos

For VMware employees:
www.vmware.com/go/demos

Sorry

Visit the VMware Demo Library
to get more demos!

For VMware partners:
www.vmware.com/go/partnerdemos

For VMware employees:
www.vmware.com/go/demos

Sorry

Unable to initialize the simulation player:

This demo file may be incomplete or damaged. Please reload the page or download again from the VMware Demo Library:

For VMware partners:
www.vmware.com/go/partnerdemos

For VMware employees:
www.vmware.com/go/demos

X

This is an interactive demo

Drive it with your mouse, your finger, or just use the arrow keys.

Use Learn mode to learn the demo. The orange boxes show where to click.

Use Present mode to hide the orange boxes and notes.

Click a Shortcut to jump to a specific part of the demo.

X
Hide notes
Restore notes
Open notes window
Increase font size
Decrease font size

This demo lab is for API/SDK support on linux Platform. Similar approach is taken when using Windows or Mac OS for accessing API/SDK tools.

NSX SDWAN portal is built on ReST API.

Summary Steps: 

Step 1: Check the Ubuntu Version before start installing packages.

Step 2: Download API and SDK Packages and untar these packages.

Step 3: Install the Python SDK system dependencies packages

Step 4: Install Python SDK. Run the setup.py to install python

Step 5: Verify the Python and the packages. 

Now that the python package is installed, let's us execute a test case. 

Step 6: Verification Step. Use the Sample python script using SDK.

Test Case is to get all the information related to profile configuration for Customer "Stark Enterprises". 

Step 6a: Login to SD-WAN orchestrator to identify the Customer number. 

Step 6b.: Execute a scenario. Scenario is to get all the profile details for Customer "Stark Enterprises"

Detailed Step by step instruction: 

Step 1: Check linux Version for package installation

  • ssh to the linux machine to check the version details 
  • click and type lsb_release -a
  • This demo lap works on Ubuntue 14.4 release.
  • Make sure to be logged in as root. use the root credentions to access sudo -i
  • For this demo lab, end user will install the packages under /opt

Step 2: Download API and SDK Packages and untar these packages.

  • click on the linux prompt.
  • type in wget to install the api and sdk pacakge wget https://s3.amazonaws.com/velocloud-tme/r3.2.0/api.tar.bz2

  • Press ENTER
  • click on ls -al to check on the package file. there should be "api.tar.bz2 package file. 

    Next step is to download the sample api package file. 

  • click on the linux prompt to install the sample package file.
  • type in wget to install the sample file 
    wget https://s3.amazonaws.com/velocloud-tme/training/api-sample-pack.zip
  • type ls -al to check for both the files. 

    Next step is to untar the file (api package)

  • untar the api package file
  • click on the linux prompt and type bunzip2 api-tar.bz2
  • click on the linux prompt and type tar xvf api.tar
  • click ls -al , this will show api folder. 
  • click api.tar to continue and go into the api folder
  • type in cd api
  • click on the linux prompt and this will take the end user into /opt/api/sdk/python folder. 

Step 3: Install the dependencies packages

  • click on the linux prompt to install packages using apt-get cli
  • before end user starts installing dependencies packages, lets update and upgrade the exisiting packages. 

    apt-get update and apt-get upgrade
  • click and type in apt-get update
  • click and apt-get upgrade will start

  • Package-1: apt-get intall python-pip
  • click and type in apt-get install python-pip

  • Package-2: pip install --upgrade pip
  • click to type in pip install --upgrade pip

  • Package-3: Install dependency package certifi
  • click to execute cli pip install --upgrade certifi
  • type in pip install --upgrade certifi


  • Package-4: Install dependency package six
  • click and type in pip install --upgrade six

  • Package-5: Install dependency package urllib3
  • click and type in pip install --upgrade urllib3

  • Package-6: Now install the setuptools
  • click and type in apt-get install python-setuptools

Step 4: Install Python 

  • Now install the python
  • click and execute the cli python ./setup.py install

Step 5: Verify Python installation

  • click and type python
  • from the python prompt, type in import velocloud
  • If successful, then move on to the next cli execution, 
  • type in dir(velocloud)

We are ready to execute a test case. 

Step 6: Verification Step. Use the Sample python script using SDK.

Test case is to collect the config for the Customer=Stark Enterprise at profile level. For this, sample.py file is used. As a step 1, end user will login to the orchestrator and will get the customer number. After getting the customer number, sample.py file is used.

  • click on the web browser with Orchestrator link as https://demo.velocloud.net/operator
  • login with the operator access on to the orchetrator 
  • click on the customer name "Stark Enterprises"
  • find out the customer number. In this case, customer number is 96
  • click on configure to check on the profile. End user will pull the same information for the profile using python.
  • Total of 3 profiles are seen from the orchestrator. This should be exepected result when the api is used using python tool. 
  • from the cli, vi sample.py
  • modify the sample.py with
    • hostname for orchestrater=demo.velocloud.net
    • Username to login to the orchestrator
    • Password for your user account
    • customer number
  • click to add the host name. Type in demo.velocloud.net
  • click to add username and password
  • Save the sample.py script file. There are other examples/scenario's also covered in the sample.py file. comment out the other scenario and just use the profile scenario. 
  • Execute the sample.py using python sample.py

Similar information related to the test case can be pulled for browser devloper tool or some json tool or cURL based tool

How likely is it that you would recommend this demo to a friend or colleague?
Not at all likely Extremely likely
Thanks, we appreciate your feedback!
Copyright © 2018 VMware, Inc. All rights reserved.