onos> app activate org.foo.app onos> apps -s ... * 29 org.foo.app 1.0.SNAPSHOT ONOS OSGi bundle archetype
You can now use the generated code for this test app as a framework for adding your own custom code. If you edit the file src/main/java/org/foo/app/AppComponent.java, you can see how the application is created, and add your own code to the application.
ONOS applications can hook into the ONOS CLI and GUI. When generating your application, you can use overlays to generate the classes needed to give your application access to these services.
onos> sample Hello World
You can use the CLI overlay to add your own commands to the CLI for your app. Edit the file src/main/java/org/foo/app/AppCommand.java to see how the sample command is implemented and the file src/main/resources/OSGI-INF/blueprint/shell-config.xml to see how new commands are integrated into the existing CLI.
User Interface Overlays
To allow your application to add to the ONOS web UI, overlay the UI interface like this: