Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 2.18 KB

README.md

File metadata and controls

49 lines (39 loc) · 2.18 KB

Example SDN controller applications

The best way how to start consume lighty.io services is to check example applications in this project, usage of lighty core components as well as RESTCONF and NETCONF plugins.

Setup controller project

Typical controller project requires initialization of ODL core services, south-bound plugins and optionally RESTCONF north-bound plugin. ODL core services represent MD-SAL layer, controller, DataStore, global schema context and all related services.

  1. Add dependency on lighty.io core services
<dependencies>
   <dependency>
      <groupId>io.lighty.core.parents</groupId>
      <artifactId>lighty-dependency-artifacts</artifactId>
      <version>12.0.0</version>
      <type>pom</type>
      <scope>import</scope>
   </dependency>
</dependencies>        
  1. Optionally add dependencies on south-bound or north-bound plugins.
  1. Initialize and start LightyController
LightyControllerBuilder lightyControllerBuilder = new LightyControllerBuilder();
LightyController lightyController = lightyControllerBuilder.from(controllerConfiguration).build();
lightyController.start().get();

Controller initialization process

Controller startup sequence consists of 5 easy steps. Step #4 is optional.

startup-sequence

Controller types

lighty.io supports development of two basic controller types:

  • Standalone controller - runs in own JVM as micro service
  • Embedded controller - runs with other application components in single JVM