Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

$ mkdir meow
$ cd meow

 

(1) Create the main application

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

(Accept the remaining defaults)

(2) Overlay the UI additional components

$ 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:

'Meowster Sample ONOS App'

(b) Change the onos-app-name:

'org.meowster.app'

(c) Change the onos-app-origin:

'Meowster, Inc.'

(4) Build the app:

$ mvn clean install

 

 

  • No labels