Just 40 minutes? 2 Outline A Brief Introduction to the ONOS Web - - PowerPoint PPT Presentation

just 40 minutes
SMART_READER_LITE
LIVE PREVIEW

Just 40 minutes? 2 Outline A Brief Introduction to the ONOS Web - - PowerPoint PPT Presentation

ONOS Web UI -- Designed for Extensibility Simon Hunt ONOS Mini Summit ONS 2016 Open Networking Lab So much content, so little time! Just 40 minutes? 2 Outline A Brief Introduction to the ONOS Web UI Web UI Architecture


slide-1
SLIDE 1

ONOS Web UI -- Designed for Extensibility

Simon Hunt

Open Networking Lab ONOS Mini Summit

ONS 2016

slide-2
SLIDE 2

2

So much content, so little time!

Just 40 minutes?

slide-3
SLIDE 3

3

Outline

  • A Brief Introduction to the ONOS Web UI
  • Web UI Architecture

○ Overview Schematic ○ Source File Directory Structure

  • Use Maven Archetypes to…

○ Create a Custom View ○ Create a Table-based View ○ Create a Topology Overlay

  • Q & A
slide-4
SLIDE 4

4

Introduction to the ONOS Web UI

  • A visualization
  • f your network
  • A view into the

ONOS cluster [Demo]

slide-5
SLIDE 5

5

Core UI Extension

Web UI Architecture -- Overview Schematic (1)

UI Extension Service

UiMessageHandlerFactory UiView UiView UiView UiMessageHandler UiMessageHandler UiMessageHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler

css.html js.html

HTML JS CSS

Web UI UiWebSocket ClusterService DeviceService LinkService HostService IntentService

slide-6
SLIDE 6

6

Web UI Architecture -- Overview Schematic (2)

Web UI UiMessageHandler UiMessageHandler UiMessageHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler UiWebSocket ClusterService DeviceService LinkService HostService IntentService JSON

{ “event”: “deviceDetailsRequest”, “payload”: { “id”: “of:0000000000000002” } } { “event”: “deviceDetailsResponse”, “payload”: { “id”: “of:0000000000000002”, “name”: “switch-2”, “type”: “SWITCH”, “mfr”: “ACME Switch Co.”, ... } }

UiMessageHandler UiMessageHandler UiMessageHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler RequestHandler ClusterService DeviceService LinkService HostService IntentService

slide-7
SLIDE 7

7

My UI Extension

Register during @Activate Unregister during @Deactivate @Component

Core UI Extension

Web UI Architecture -- Overview Schematic (3)

UI Extension Service

UiMessageHandlerFactory UiView UiMessageHandler RequestHandler RequestHandler

css.html js.html

HTML JS CSS

ClusterService DeviceService LinkService HostService IntentService

slide-8
SLIDE 8

8

Web UI Architecture -- Source File Directory Structure

js.html css.html

viewId resources app view viewId

viewId.html viewId.js viewId.css

java

  • rg.foo.app

src main “viewId” AppComponent UiView AppUiComponent RequestHandler AppUiMessageHandler

slide-9
SLIDE 9

9

Creating a Custom View

  • A “blank slate”
  • Create a skeleton using the ui archetype

[Demo]

slide-10
SLIDE 10

10

Creating a Table-based View

  • Tabular Data
  • Create a skeleton using the uitab archetype

“Nothing to see here… Move right along…”

[Demo]

slide-11
SLIDE 11

11

Creating a Topology Overlay

  • Adding functionality to the Topology View
  • Create a skeleton using the uitopo archetype
  • Unfortunately, we’ll be glossing over many details

○ Your homework is to study the code in your own time :) [Demo]

slide-12
SLIDE 12

12

  • Documentation on the Wiki

○ The ONOS Web GUI ○ GUI Topology View ○ Tutorials:

■ Creating a Custom View ■ Creating a Tabular View ■ Creating a Topology Overlay

  • This Presentation

○ goo.gl/Ci2GZr

References

goo.gl/Ci2GZr

slide-13
SLIDE 13

13

Q & A

?

slide-14
SLIDE 14

14

Thank you!

!

slide-15
SLIDE 15

15

ONOS -- Building a Better Network

Software Defined Transformation of Service Provider Networks Join the journey @ onosproject.org