Skip to content

Run First Restconf App

Jim Burns edited this page Sep 1, 2015 · 9 revisions

This page walks you through running your first RESTCONF application.

  1. Be sure you have done all the steps in Quick-Start-Guide before this step.

  2. Open a terminal window

  3. In the terminal window:

    1. Copy the FirstSdnApp sample applications to your computer
    git clone https://github.com/Elbrys/FirstSdnApp.git
    1. Change directory into the FirstSdnApp sample applications
    cd FirstSdnApp
    1. Run the FirstRestconfApp application, providing it a set of flags.
    python FirstRestconfApp.py --id <ID> --secret <SECRET> --server <IP> --port <RPORT>
  • Where:
    • ID: Currently this is always: admin For OpenNAC apps and a future version of the Lab it will be the SDN App Id found in the header of the 'SDN Applications' table on the SDN Developer Lab screen.
    • SECRET: Currently this is always: admin For OpenNAC apps and a future version of the Lab it will be the SDN App Secret found in the header of the 'SDN Applications' table on the SDN Developer Lab screen. You will need to click the 'eyeball' icon to reveal the secret.
    • IP: IP Address of controller found in the 'SDN Controller' table on the SDN Developer Lab screen.
    • RPORT: TCP port number of the RESTCONF API of the controller found in the 'SDN Controller' table on the SDN Developer Lab screen.
  1. Congratulations! You just ran your first SDN Application using the Elbrys SDN Developer Lab.
  2. Go back to the Wiki Home for ideas on what to do next.

Clone this wiki locally