-
Notifications
You must be signed in to change notification settings - Fork 2
OpenNAC Sample Apps
Jim Burns edited this page Sep 6, 2015
·
2 revisions
- Network device connected to your SDN Developer Lab
- You will need 'git' installed on your software development machine (your laptop/pc)
-
Clone the SDN Developer Lab Sample Applications Github repository
git clone https://github.com/Elbrys/OpenNAC-API-Samples.git
-
Change directories into OpenNAC-API-Samples
cd OpenNAC-API-Samples
-
Execute each application in turn. All applications implement the -h flag to provide help.
python app1.py --id ID --secret SECRET --switch DPID --server IP --port REST python app2.py --id ID --secret SECRET --switch DPID --server IP --port REST python app3.py --id ID --secret SECRET --switch DPID --server IP --port REST python app4.py --id ID --secret SECRET --server IP --port REST DPID [DPID ...]
- ID and SECRET are on the SDN Applications table on SDN Developer Lab
- IP and RESTPORT are on the SDN Controller table on SDN Developer Lab
- DPID is on the Devices table on SDN Developer Lab (note: for Tallac AP you use a VNET ID in place of DPID. See Obtain Tallac AP VNET ID)
-
Once you have run the test applications you can now write an SDN Application to target this AP (remember the DPID (vnet id) because you will need this when your write/run your SDN application).