Versions Compared

Key

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

WIP - Content to come later - this is just a placeholder for now.

An application can create their own custom views and have them integrated into the ONOS web GUI. This tutorial walks you through the process of developing such a view. A fictitious company, "Meowster, Inc." is used throughout the examples.

Application Set Up

The quickest way to get started is to use the maven archetypes to create the application source directory structure and fill it with template code. You can get more details here, but to summarize:

(0) Create a working directory

Code Block
$ mkdir meow
$ cd meow

 

(1) Create the main application

Code Block
$ onos-create-app app org.meowster.app meowster-app

(Accept the remaining defaults)

(2) Overlay the UI additional components

Code Block
$ onos-create-app ui org.meowster.app meowster-app

(Accept the remaining defaults)

(3) Modify the pom.xml file to mark the module as an ONOS app:

(a) Change the description:

Code Block
'Meowster Sample ONOS App'

(b) Change the onos-app-name:

Code Block
'org.meowster.app'

(c) Change the onos-app-origin:

Code Block
'Meowster, Inc.'

(4) Build the app:

Code Block
$ mvn clean install