Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
onos> app activate
onos> apps -s
*  29                      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/, 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.


Code Block
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/ 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: