If you want to get started writing your own ONOS applications, the best place to start is Tutorials and Walkthroughs. Go there now!
This page, which is work in progress, will describe how to compile, run and extend the sample applications from the
Work-in-progress. Completed page will be linked into the Tutorials and Walkthroughs page.
While ONOS source tree contains a number of built-in applications, a separate source repository
onos-app-samples has been setup to host various sample and test-oriented applications.
Clone the Application Repository
The entire sample application code base can be built using the usual Maven command:
Development alongside ONOS
To develop sample applications along-side with ONOS, you can import the top-level sample applications pom.xml file as a module into the existing ONOS project. This setup will allow developers to easily refactor across both code bases.
Complete the import wizard via File > Import Module... > select pom.xml from onos-app-samples > Next > Next > select JDK > Finish
When done, the IntelliJ Project navigator window should look something like this:
- steps to be documented
IDE Setup for Standalone Development
To develop application code alone follow the usual procedures to import the project into your IDE.