SlideShare a Scribd company logo
1 / 56
ODL
OpenDaylight
Eueung Mulyana
https://telematika.org/remark/odl
CodeLabs | Attribution-ShareAlike CC BY-SA
Outline
Introduction
ODL + Mininet
REST Interface
Developing ODL Apps
2 / 56
OpenDaylight Nitrogen 0.7.1 | Mininet 2.2.2 on RPI3 with Ubuntu
16.04.3 LTS | OVS (Open vSwitch) 2.5.2
VirtualBox 5.2.6 on Ubuntu Xenial 16.04.3.
3 / 56
Introduction
4 / 56
5 / 56
ODL
OpenDaylight
OpenDaylight (ODL) is a modular open platform for customizing
and automating networks of any size and scale. The
OpenDaylight Project arose out of the SDN movement, with a
clear focus on network programmability. It was designed from
the outset as a foundation for commercial solutions that
address a variety of use cases in existing network environments.
ODL is driven by a global, collaborative community of vendor and user organizations that
continuously adapts to support the industry's broadest set of SDN and NFV use cases.
With over 1000 developers, 50 member organizations and supporting approximately 1
billion subscribers around the world, OpenDaylight is quickly evolving integrated
toolchains for leading use cases.
Ref: Platform Overview - OpenDaylight
6 / 56
ODL
Community
Founded in February 2013
Run by the Linux Foundation
Eclipse Public License
15 founding companies provided
software and developers
1000+ contributors
2.5M+ lines of code
Mostly Java
OpenDaylight Model/Components 7 / 56
OpenDaylight Releases - as of 02/2018
Carbon 0.6.2 | Nitrogen 0.7.1 8 / 56
9 / 56
ODL
Architecture
Model-Driven
The core of the OpenDaylight platform is the Model-Driven
Service Abstraction Layer (MD-SAL). In OpenDaylight,
underlying network devices and network applications are all
represented as objects, or models, whose interactions are
processed within the SAL.
The SAL is a data exchange and adaptation mechanism between YANG models
representing network devices and applications. The YANG models provide generalized
descriptions of a device or application's capabilities without requiring either to know the
speci c implementation details of the other. Within the SAL, models are simply de ned
by their respective roles in a given interaction. A "producer" model implements an API
and provides the API's data; a "consumer" model uses the API and consumes the API's
data. While 'northbound' and 'southbound' provide a network engineer's view of the
SAL, 'consumer' and 'producer' are more accurate descriptions of interactions within the
SAL. For example, protocol plugin and its associated model can either be a producer of
information about the underlying network, or a consumer of application instructions it
receives via the SAL.
10 / 56
ODL
Architecture
Modular & Multiprotocol
ODL includes support for the broadest set of protocols in any
SDN platform - OpenFlow, OVSDB, NETCONF, BGP and many
more - that improve programmability of modern networks and
solve a range of user needs.
Southbound protocols and control plane services, anchored by the MD-SAL, can be
individually selected or written, and packaged together according to the requirements of
a given use case. A controller package is built around four key components (odlparent,
controller, MD-SAL and yangtools). To this, the solution developer adds a relevant group
of southbound protocols plugins, most or all of the standard control plane functions, and
some select number of embedded and external controller applications, managed by
policy.
Each of these components is isolated as a Karaf feature, to ensure that new work doesn't
interfere with mature, tested code. OpenDaylight uses OSGi (Equinox) and Maven to
build a package that manages these Karaf features and their interactions.
11 / 56
ODL
Architecture
Modular & Multiprotocol
The ODL platform is designed to allow downstream users and
solution providers maximum exibility in building a controller
to t their needs. This modular framework allows developers
and users to:
Only install the protocols and services they need
Combine multiple services and protocols to solve more
complex problems as needs arise
Incrementally and collaboratively evolve the capabilities of
the open source platform
Quickly develop custom, value-added features for highly
specialized use cases, leveraging a common platform
shared across the industry
Getting Started
ODL + Mininet
12 / 56
13 / 56
Getting Started
Install Java JDK + Env Adjustment
Download ODL + Unzip/Untar
Run Karaf
Install Features
Run Mininet (Remote Controller Pointed
to the ODL instance)
14 / 56
Installation
Java Dependency
$ sudo apt-get install unzip zip tree
$ sudo apt-get install software-properties-common -y && 
sudo add-apt-repository ppa:webupd8team/java -y && 
sudo apt-get update && 
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-s
sudo apt-get install oracle-java8-installer oracle-java8-set-default -y
$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
$ which java
/usr/bin/java
$ echo $JAVA_HOME
$ nano .profile
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
$ source .profile
15 / 56
Installation
Download +
Unzip/Untar
# direct download
$ wget https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/k
# indirect: download first + sftp
$ sftp -oPort=22 em@192.168.56.70
sftp> put karaf-0.7.1.zip
$ ssh em@192.168.56.70
$ unzip karaf-0.7.1.zip
$ cd karaf-0.7.1
$ ./bin/karaf
~/karaf-0.7.1$ ./bin/karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]
Karaf started in 2s. Bundle stats: 52 active, 53 total
________ ________ .__ .__ .__ __
_____  ______ ____ ____ ______  _____ ___.__.| | |__| ____ | |___/ |_
/ | ____ _/ __  /  | | __ < | || | | |/ ___| |  __
/ |  |_> > ___/| | | ` / __ ___ || |_| / /_/ > Y  |
_______ / __/ ___ >___| /_______ (____ / ____||____/_____ /|___| /__|
/|__| / / / // /_____/ /
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.
opendaylight-user@root>feature
feature feature:export-bundles feature:info feat
feature:repo-add feature:repo-list feature:repo-refresh feat
feature:requirement-remove feature:start feature:stop feat
opendaylight-user@root>feature:list --installed
Name | Version | Required | State | Repository | Description
----------------------------------------------------------------------------------------------
aries-proxy | 4.0.10 | | Started | standard-4.0.10 | Aries Proxy
aries-blueprint | 4.0.10 | | Started | standard-4.0.10 | Aries Blueprint
feature | 4.0.10 | | Started | standard-4.0.10 | Features Support
shell | 4.0.10 | | Started | standard-4.0.10 | Karaf Shell
shell-compat | 4.0.10 | | Started | standard-4.0.10 | Karaf Shell Compatibility
deployer | 4.0.10 | | Started | standard-4.0.10 | Karaf Deployer
bundle | 4.0.10 | | Started | standard-4.0.10 | Provide Bundle support
config | 4.0.10 | | Started | standard-4.0.10 | Provide OSGi ConfigAdmin su
diagnostic | 4.0.10 | | Started | standard-4.0.10 | Provide Diagnostic support
instance | 4.0.10 | | Started | standard-4.0.10 | Provide Instance support
jaas | 4.0.10 | | Started | standard-4.0.10 | Provide JAAS support
log | 4.0.10 | | Started | standard-4.0.10 | Provide Log support
package | 4.0.10 | | Started | standard-4.0.10 | Package commands and mbeans
service | 4.0.10 | | Started | standard-4.0.10 | Provide Service support
system | 4.0.10 | | Started | standard-4.0.10 | Provide System support
kar | 4.0.10 | | Started | standard-4.0.10 | Provide KAR (KARaf archive)
ssh | 4.0.10 | | Started | standard-4.0.10 | Provide a SSHd server on Ka
16 / 56
Run Karaf
opendaylight-user@root>feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs
opendaylight-user@root>feature:install odl-dlux-core odl-dluxapps-nodes odl-dluxapps-topology
opendaylight-user@root>feature:list -i | grep dlux
odl-dluxapps-yangui | 0.6.1 | x | Started | odl-
odl-dluxapps-yangvisualizer | 0.6.1 | x | Started | odl-
odl-dluxapps-yangman | 0.6.1 | x | Started | odl-
odl-dluxapps-topology | 0.6.1 | x | Started | odl-
odl-dluxapps-nodes | 0.6.1 | x | Started | odl-
odl-dlux-core | 0.6.1 | x | Started | odl-
opendaylight-user@root>feature:list | grep dlux
features-dluxapps | 0.6.1 | | Uninstalled |
features-dlux | 0.6.1 | | Uninstalled |
odl-dluxapps-applications | 0.6.1 | | Uninstalled |
odl-dluxapps-yangui | 0.6.1 | x | Started |
odl-dluxapps-yangvisualizer | 0.6.1 | x | Started |
odl-unimgr-dlux | 0.3.1 | | Uninstalled |
odl-dluxapps-yangman | 0.6.1 | x | Started |
odl-dluxapps-topology | 0.6.1 | x | Started |
odl-dluxapps-nodes | 0.6.1 | x | Started |
odl-dluxapps-yangutils | 0.6.1 | | Uninstalled |
odl-dlux-core | 0.6.1 | x | Started |
opendaylight-user@root>feature:info odl-dluxapps-applications
Feature odl-dluxapps-applications 0.6.1
Description:
ODL :: dluxapps :: odl-dluxapps-applications
Details:
OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For mo
Feature has no configuration
Feature has no configuration files
Feature depends on:
odl-dluxapps-nodes 0.6.1
odl-dluxapps-topology 0.6.1
odl-dluxapps-yangui 0.6.1
odl-dluxapps-yangvisualizer 0.6.1
odl-dluxapps-yangman 0.6.1
Feature has no bundles.
Feature has no conditionals.
17 / 56
Install
Features
18 / 56
Mininet
Connect to ODL
$ ssh -X ubuntu@192.168.0.155
$ ubuntu@pi:~$ sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.0.156,port=6633 --sw
+++ Creating network
+++ Adding controller
+++ Adding hosts:
h1 h2 h3
+++ Adding switches:
s1 s2 s3
+++ Adding links:
(h1, s1) (h2, s2) (h3, s3) (s2, s1) (s3, s2)
+++ Configuring hosts
h1 h2 h3
+++ Starting controller
c0
+++ Starting 3 switches
s1 s2 s3 ...
+++ Starting CLI:
mininet>
# access (note: index.html | cred: admin/admin)
# http://192.168.0.156:8181/index.html
DLUX - Topology 19 / 56
DLUX - Node 20 / 56
DLUX - Node - Node Connectors 21 / 56
DLUX - Node - Statistics Node Connectors 22 / 56
23 / 56
Mininet
pings
mininet> h1 ping -c1 h3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=33.1 ms
--- 10.0.0.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 33.188/33.188/33.188/0.000 ms
mininet> pingall
+++ Ping: testing ping reachability
h1 -> h2 h3
h2 -> h1 h3
h3 -> h1 h2
+++ Results: 0% dropped (6/6 received)
Topology - h1 ping -c1 h3 24 / 56
Topology - pingall 25 / 56
REST Interface
26 / 56
27 / 56
REST Interface
RESTconf
OpenDaylight applications expose
con guration and state in the
datastore. The REST interface has
direct access to the controller
datastore.
RFC 8040
Restful API for YANG data models and provides lighter-
weight interface to network datastores leveraging well
known combination of REST and JSON.
Con guration data and state data exposed as resources
HTTP instead of SSH for transport; JSON in addition to XML
for data encoding
Ref: OpenDaylight as a Platform for Network Programmability
High Level Manageability Architecture - (Eckel/Cisco) 28 / 56
29 / 56
RESTconf
http://<IP>:8181/restconf/*
# This is where users create/read/update/delete (POST, GET, PUT, DELETE) application configurati
http://<IP>:8181/restconf/restconf/config/*
# This is where applications write state and users read it (GET).
http://<IP>:8181/restconf/restconf/operational/*
# Most popular databases are topology and inventory:
GET http://<IP>:8181/restconf/operational/network-topology:network-topology/
GET http://<IP>:8181/restconf/operational/opendaylight-inventory:nodes/
# Access via curl
curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X
# Header:
# Authorization (basic): admin/admin
# Accept (answer body): application/xml or application/json
# Content-Type (request body): application/xml or application/json
Yang UI - network-topology | Send 30 / 56
Yang UI - network-topology | Display Topology 31 / 56
Yang UI - odl-inventory | Send + Preview 32 / 56
Yangman - network-topology 33 / 56
External via Postman - network-topology 34 / 56
External via Postman - odl-inventory 35 / 56
APIdoc 36 / 56
APIdoc 37 / 56
APIdoc - network-topology 38 / 56
Introduction
Developing ODL Apps
39 / 56
40 / 56
Maven
$ apt-cache policy maven
maven:
Installed: (none)
Candidate: 3.3.9-3
Version table:
3.3.9-3 500
500 http://kambing.ui.ac.id/ubuntu xenial/universe amd64 Packages
500 http://kambing.ui.ac.id/ubuntu xenial/universe i386 Packages
$ sudo apt install maven
$ mvn -v
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.4.0-112-generic", arch: "amd64", family: "unix"
$ mkdir .m2
$ wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/stable/boron/settings.xm
$ mkdir devfolder && cd devfolder
# cp -n ~/.m2/settings.xml{,.orig} ; wget -q -O - https://raw.githubusercontent.com/opendayligh
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=op
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/
-DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon
Define value for property 'groupId': org.opendaylight.hallo
Define value for property 'artifactId': hallo
[INFO] Using property: version = 0.1.0-SNAPSHOT
Define value for property 'package' org.opendaylight.hallo: :
Define value for property 'classPrefix' Hallo: :
Define value for property 'copyright': hallo inc.
[INFO] Using property: copyrightYear = 2017
Confirm properties configuration:
groupId: org.opendaylight.hallo
artifactId: hallo
version: 0.1.0-SNAPSHOT
package: org.opendaylight.hallo
classPrefix: Hallo
copyright: hallo inc.
copyrightYear: 2017
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: opendaylight-startup-ar
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.opendaylight.hallo
[INFO] Parameter: artifactId, Value: hallo
[INFO] Parameter: version, Value: 0.1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.opendaylight.hallo
[INFO] Parameter: packageInPathFormat, Value: org/opendaylight/hallo
[INFO] Parameter: classPrefix, Value: Hallo
[INFO] Parameter: package, Value: org.opendaylight.hallo
[INFO] Parameter: version, Value: 0.1.0-SNAPSHOT
[INFO] Parameter: copyright, Value: hallo inc.
[INFO] Parameter: groupId, Value: org.opendaylight.hallo
[INFO] Parameter: artifactId, Value: hallo
[INFO] Parameter: copyrightYear, Value: 2017
[WARNING] Don't override file /home/em/devfolder/hallo/pom.xml
[INFO] Project created from Archetype in dir: /home/em/devfolder/hallo
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:27 min
41 / 56
ODL
Archetype
~/devfolder/hallo$ tree
.
|-- api
| |-- pom.xml
| |-- src
| |-- main
| |-- yang
| |-- hallo.yang
|-- artifacts
| |-- pom.xml
|-- cli
| |-- pom.xml
| |-- src
| |-- main
| |-- java
| | |-- org
| | |-- opendaylight
| | |-- hallo
| | |-- cli
| | |-- api
| | |-- HalloCliCommands.java
| | |-- commands
| | |-- HalloCliTestCommand.java
| | |-- impl
| | |-- HalloCliCommandsImpl.java
| |-- resources
| |-- org
| |-- opendaylight
| |-- blueprint
| |-- cli-blueprint.xml
|-- deploy-site.xml
|-- features
| |-- pom.xml
| |-- src
| |-- main
| |-- features
| |-- features.xml
|-- impl
| |-- pom.xml
| |-- src
| |-- main
| | |-- java
42 / 56
Files &
Folders
~/devfolder/hallo$ mvn clean install -DskipTests
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ODL :: org.opendaylight.hallo :: hallo-api ......... SUCCESS [03:04 min]
[INFO] ODL :: org.opendaylight.hallo :: hallo-impl ........ SUCCESS [ 52.270 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-cli ......... SUCCESS [ 18.734 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-features .... SUCCESS [12:12 min]
[INFO] ODL :: org.opendaylight.hallo :: hallo-karaf ....... SUCCESS [11:21 min]
[INFO] ODL :: org.opendaylight.hallo :: hallo-artifacts ... SUCCESS [ 1.753 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-it .......... SUCCESS [ 48.589 s]
[INFO] hallo .............................................. SUCCESS [ 32.835 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:49 min
[INFO] Finished at: 2018-02-05T03:36:20+07:00
[INFO] Final Memory: 223M/718M
[INFO] ------------------------------------------------------------------------
~/devfolder/hallo$
$ karaf/target/assembly/bin/karaf
~/devfolder/hallo$ karaf/target/assembly/bin/karaf
Apache Karaf starting up. Press Enter to open the shell now...
100% [========================================================================]
Karaf started in 37s. Bundle stats: 294 active, 294 total
________ ________ .__ .__ .__ __
_____  ______ ____ ____ ______  _____ ___.__.| | |__| ____ | |___/ |_
/ | ____ _/ __  /  | | __ < | || | | |/ ___| |  __
/ |  |_> > ___/| | | ` / __ ___ || |_| / /_/ > Y  |
_______ / __/ ___ >___| /_______ (____ / ____||____/_____ /|___| /__|
/|__| / / / // /_____/ /
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.
opendaylight-user@root>log:display | grep Hallo
43 / 56
Build
$ cat api/src/main/yang/hallo.yang
module hallo {
yang-version 1;
namespace "urn:opendaylight:params:xml:ns:yang:hallo";
prefix "hallo";
revision "2015-01-05" {
description "Initial revision of hallo model";
}
}
$ rm api/src/main/yang/hallo.yang && nano api/src/main/yang/hallo.yang
# new hallo.yang
module hallo {
yang-version 1;
namespace "urn:opendaylight:params:xml:ns:yang:hallo";
prefix "hallo";
revision "2015-01-05" {
description "Initial revision of hallo model";
}
rpc hallo-world {
input {
leaf name {
type string;
}
}
output {
leaf greeting {
type string;
}
}
}
}
$ cd api && mvn clean install -DskipTests
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.155 s
[INFO] Finished at: 2018-02-05T05:10:55+07:00
[INFO] Final Memory: 55M/580M
[INFO] ------------------------------------------------------------------------ 44 / 56
A Simple RPC
API
$ nano impl/src/main/java/org/opendaylight/hallo/impl/HalloWorldImpl.java
/*
* Copyright (c) 2016 ODL and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.hallo.impl;
import java.util.concurrent.Future;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloS
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
public class HalloWorldImpl implements HalloService {
@Override
public Future<RpcResult<HalloWorldOutput>> halloWorld(HalloWorldInput input) {
HalloWorldOutputBuilder halloBuilder = new HalloWorldOutputBuilder();
halloBuilder.setGreeting("Hallo " + input.getName());
return RpcResultBuilder.success(halloBuilder.build()).buildFuture();
}
}
~/devfolder/hallo$ ll impl/src/main/java/org/opendaylight/hallo/impl/
total 16
drwxrwxr-x 2 em em 4096 Feb 5 05:20 ./
drwxrwxr-x 3 em em 4096 Feb 5 03:02 ../
-rw-rw-r-- 1 em em 1036 Feb 5 03:02 HalloProvider.java
-rw-rw-r-- 1 em em 1302 Feb 5 05:20 HalloWorldImpl.java
45 / 56
HalloService
$ cat impl/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
<!--
Copyright (c) 2017 hallo inc. and others. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v1.0 which accompanies this distribution,
and is available at http://www.eclipse.org/legal/epl-v10.html
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">
<reference id="dataBroker"
interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
odl:type="default" />
<reference id="rpcRegistry"
interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
<bean id="provider"
class="org.opendaylight.hallo.impl.HalloProvider"
init-method="init" destroy-method="close">
<argument ref="dataBroker" />
<argument ref="rpcRegistry" />
</bean>
</blueprint>
46 / 56
RPC Registry
Reference
$ cat impl/src/main/java/org/opendaylight/hallo/impl/HalloProvider.java
/*
* Copyright (c) 2017 hallo inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.hallo.impl;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloS
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class HalloProvider {
private static final Logger LOG = LoggerFactory.getLogger(HalloProvider.class);
private final DataBroker dataBroker;
private final RpcProviderRegistry rpcProviderRegistry;
private RpcRegistration<HalloService> serviceRegistration;
public HalloProvider(final DataBroker dataBroker,RpcProviderRegistry rpcProviderRegistry)
this.dataBroker = dataBroker;
this.rpcProviderRegistry = rpcProviderRegistry;
}
/**
* Method called when the blueprint container is created.
*/
public void init() {
serviceRegistration = rpcProviderRegistry.addRpcImplementation(HalloService.class, new
LOG.info("HalloProvider Session Initiated");
}
/**
* Method called when the blueprint container is destroyed.
*/
public void close() {
47 / 56
HalloProvider
$ cd impl && mvn clean install -DskipTests
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.266 s
[INFO] Finished at: 2018-02-05T05:31:13+07:00
[INFO] Final Memory: 56M/500M
[INFO] ------------------------------------------------------------------------
$ cd .. && mvn clean install -DskipTests
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ODL :: org.opendaylight.hallo :: hallo-api ......... SUCCESS [ 28.781 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-impl ........ SUCCESS [ 14.900 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-cli ......... SUCCESS [ 13.989 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-features .... SUCCESS [ 12.178 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-karaf ....... SUCCESS [ 50.341 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-artifacts ... SUCCESS [ 1.773 s]
[INFO] ODL :: org.opendaylight.hallo :: hallo-it .......... SUCCESS [ 27.518 s]
[INFO] hallo .............................................. SUCCESS [ 28.513 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:02 min
[INFO] Finished at: 2018-02-05T05:34:43+07:00
[INFO] Final Memory: 221M/673M
[INFO] ------------------------------------------------------------------------
$ karaf/target/assembly/bin/karaf
...
opendaylight-user@root>bundle:list | grep hallo
207 | Active | 80 | 0.1.0.SNAPSHOT | ODL :: org.opendaylight.hallo :: h
208 | Active | 80 | 0.1.0.SNAPSHOT | ODL :: org.opendaylight.hallo :: h
opendaylight-user@root>feature:list | grep hallo
odl-hallo-api | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT
odl-hallo | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT
odl-hallo-rest | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT
odl-hallo-ui | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT
odl hallo cli | 0 1 0 SNAPSHOT | | odl hallo 0 1 0 SNAPSHOT
48 / 56
Build
Test via RestConf/Swagger 49 / 56
Test via RestConf/Swagger 50 / 56
Test via RestConf/Swagger 51 / 56
Test via Postman 52 / 56
Test via Postman 53 / 56
Refs/Resources
54 / 56
Refs/Resources
1. Platform Overview - OpenDaylight
2. Using the OpenDaylight SDN Controller with the Mininet Network Emulator
3. ODL_Summit_OpenFlow_Tutorial
4. OpenDaylight User Guide - OpenDaylight Documentation Nitrogen documentation
5. Getting Started Guide - OpenDaylight Documentation Nitrogen documentation
6. OpenDaylight Application Developer's tutorial | SDN Hub
7. CiscoDevNet/yangman: YANGMAN o ers dynamically generated UI forms and native JSON
representation based on RESTCONF APIs
8. OpenDaylight as a Platform for Network Programmability
9. OpenDaylight Controller:MD-SAL:Startup Project Archetype
10. Developing Apps on the OpenDaylight controller - Nitrogen
11. RFC 8040 - RESTCONF Protocol
55 / 56
56 / 56
ENDEueung Mulyana
https://telematika.org/remark/odl
CodeLabs | Attribution-ShareAlike CC BY-SA
Ad

More Related Content

What's hot (20)

cloud-migrations.pptx
cloud-migrations.pptxcloud-migrations.pptx
cloud-migrations.pptx
John Mulhall
 
Optimizing Servers for High-Throughput and Low-Latency at Dropbox
Optimizing Servers for High-Throughput and Low-Latency at DropboxOptimizing Servers for High-Throughput and Low-Latency at Dropbox
Optimizing Servers for High-Throughput and Low-Latency at Dropbox
ScyllaDB
 
Microservices = Death of the Enterprise Service Bus (ESB)?
Microservices = Death of the Enterprise Service Bus (ESB)?Microservices = Death of the Enterprise Service Bus (ESB)?
Microservices = Death of the Enterprise Service Bus (ESB)?
Kai Wähner
 
From airflow to google cloud composer
From airflow to google cloud composerFrom airflow to google cloud composer
From airflow to google cloud composer
Bruce Kuo
 
Building an MLOps Stack for Companies at Reasonable Scale
Building an MLOps Stack for Companies at Reasonable ScaleBuilding an MLOps Stack for Companies at Reasonable Scale
Building an MLOps Stack for Companies at Reasonable Scale
Merelda
 
Camunda BPM 7.2 - English
Camunda BPM 7.2 - EnglishCamunda BPM 7.2 - English
Camunda BPM 7.2 - English
camunda services GmbH
 
BPMN and DMN for Processing Business Data with Camunda
BPMN and DMN for Processing Business Data with CamundaBPMN and DMN for Processing Business Data with Camunda
BPMN and DMN for Processing Business Data with Camunda
André Borgonovo
 
Microservices
Microservices Microservices
Microservices
Trieu Nguyen
 
Event Driven Software Architecture Pattern
Event Driven Software Architecture PatternEvent Driven Software Architecture Pattern
Event Driven Software Architecture Pattern
jeetendra mandal
 
Cat @ scale
Cat @ scaleCat @ scale
Cat @ scale
Rohit Jnagal
 
Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018
Araf Karsh Hamid
 
Service Oriented Architecture & Beyond
Service Oriented Architecture & BeyondService Oriented Architecture & Beyond
Service Oriented Architecture & Beyond
Imesh Gunaratne
 
Webinar: Implementation of 10 Integration Patterns on iPaaS Platform
Webinar: Implementation of 10 Integration Patterns on iPaaS PlatformWebinar: Implementation of 10 Integration Patterns on iPaaS Platform
Webinar: Implementation of 10 Integration Patterns on iPaaS Platform
APPSeCONNECT
 
Concource CI/CD
Concource CI/CDConcource CI/CD
Concource CI/CD
Knoldus Inc.
 
Cloud migration strategies
Cloud migration strategiesCloud migration strategies
Cloud migration strategies
SogetiLabs
 
Rundeck Overview
Rundeck OverviewRundeck Overview
Rundeck Overview
Rundeck
 
Syslog.ppt
Syslog.pptSyslog.ppt
Syslog.ppt
ifsharahmad
 
Azure App Modernization
Azure App ModernizationAzure App Modernization
Azure App Modernization
Phi Huynh
 
kafka
kafkakafka
kafka
Amikam Snir
 
Architect your app modernization journey with containers on Microsoft Azure
Architect your app modernization journey with containers on Microsoft AzureArchitect your app modernization journey with containers on Microsoft Azure
Architect your app modernization journey with containers on Microsoft Azure
Davide Benvegnù
 
cloud-migrations.pptx
cloud-migrations.pptxcloud-migrations.pptx
cloud-migrations.pptx
John Mulhall
 
Optimizing Servers for High-Throughput and Low-Latency at Dropbox
Optimizing Servers for High-Throughput and Low-Latency at DropboxOptimizing Servers for High-Throughput and Low-Latency at Dropbox
Optimizing Servers for High-Throughput and Low-Latency at Dropbox
ScyllaDB
 
Microservices = Death of the Enterprise Service Bus (ESB)?
Microservices = Death of the Enterprise Service Bus (ESB)?Microservices = Death of the Enterprise Service Bus (ESB)?
Microservices = Death of the Enterprise Service Bus (ESB)?
Kai Wähner
 
From airflow to google cloud composer
From airflow to google cloud composerFrom airflow to google cloud composer
From airflow to google cloud composer
Bruce Kuo
 
Building an MLOps Stack for Companies at Reasonable Scale
Building an MLOps Stack for Companies at Reasonable ScaleBuilding an MLOps Stack for Companies at Reasonable Scale
Building an MLOps Stack for Companies at Reasonable Scale
Merelda
 
BPMN and DMN for Processing Business Data with Camunda
BPMN and DMN for Processing Business Data with CamundaBPMN and DMN for Processing Business Data with Camunda
BPMN and DMN for Processing Business Data with Camunda
André Borgonovo
 
Event Driven Software Architecture Pattern
Event Driven Software Architecture PatternEvent Driven Software Architecture Pattern
Event Driven Software Architecture Pattern
jeetendra mandal
 
Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018
Araf Karsh Hamid
 
Service Oriented Architecture & Beyond
Service Oriented Architecture & BeyondService Oriented Architecture & Beyond
Service Oriented Architecture & Beyond
Imesh Gunaratne
 
Webinar: Implementation of 10 Integration Patterns on iPaaS Platform
Webinar: Implementation of 10 Integration Patterns on iPaaS PlatformWebinar: Implementation of 10 Integration Patterns on iPaaS Platform
Webinar: Implementation of 10 Integration Patterns on iPaaS Platform
APPSeCONNECT
 
Cloud migration strategies
Cloud migration strategiesCloud migration strategies
Cloud migration strategies
SogetiLabs
 
Rundeck Overview
Rundeck OverviewRundeck Overview
Rundeck Overview
Rundeck
 
Azure App Modernization
Azure App ModernizationAzure App Modernization
Azure App Modernization
Phi Huynh
 
Architect your app modernization journey with containers on Microsoft Azure
Architect your app modernization journey with containers on Microsoft AzureArchitect your app modernization journey with containers on Microsoft Azure
Architect your app modernization journey with containers on Microsoft Azure
Davide Benvegnù
 

Similar to OpenDaylight SDN Controller - Introduction (20)

OpenStack with OpenDaylight
OpenStack with OpenDaylightOpenStack with OpenDaylight
OpenStack with OpenDaylight
Vikram G Hosakote
 
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylightSDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
Telematika Open Session
 
OpenDaylight Integration with OpenStack Neutron: A Tutorial
OpenDaylight Integration with OpenStack Neutron: A TutorialOpenDaylight Integration with OpenStack Neutron: A Tutorial
OpenDaylight Integration with OpenStack Neutron: A Tutorial
mestery
 
Introduction to the Helium release of OpenDaylight
Introduction to the Helium release of OpenDaylightIntroduction to the Helium release of OpenDaylight
Introduction to the Helium release of OpenDaylight
SDN Hub
 
OpenStack Integration with OpenContrail and OpenDaylight
OpenStack Integration with OpenContrail and OpenDaylightOpenStack Integration with OpenContrail and OpenDaylight
OpenStack Integration with OpenContrail and OpenDaylight
Syed Moneeb
 
Opendaylight SDN Controller
Opendaylight SDN ControllerOpendaylight SDN Controller
Opendaylight SDN Controller
Sumit Arora
 
OpenSCAP Overview(security scanning for docker image and container)
OpenSCAP Overview(security scanning for docker image and container)OpenSCAP Overview(security scanning for docker image and container)
OpenSCAP Overview(security scanning for docker image and container)
Jooho Lee
 
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
sparkfabrik
 
4th SDN Interest Group Seminar-Session 2-2(130313)
4th SDN Interest Group Seminar-Session 2-2(130313)4th SDN Interest Group Seminar-Session 2-2(130313)
4th SDN Interest Group Seminar-Session 2-2(130313)
NAIM Networks, Inc.
 
Open source sdn controllers comparison
Open source sdn controllers comparisonOpen source sdn controllers comparison
Open source sdn controllers comparison
Yashaswi Jain
 
SDN and NFV Friends or Enemies ?
SDN and NFV Friends or Enemies ?SDN and NFV Friends or Enemies ?
SDN and NFV Friends or Enemies ?
Kedar Raval
 
Know about SDN and NFV
Know about SDN and NFVKnow about SDN and NFV
Know about SDN and NFV
Kedar Raval
 
Fn project quick installation guide
Fn project quick installation guideFn project quick installation guide
Fn project quick installation guide
Johan Louwers
 
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFVBharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar
 
SDN and NFV: Friends or Enemies
SDN and NFV: Friends or EnemiesSDN and NFV: Friends or Enemies
SDN and NFV: Friends or Enemies
Justyna Bak
 
OpenStack Meetup - SDN
OpenStack Meetup - SDNOpenStack Meetup - SDN
OpenStack Meetup - SDN
Szilvia Racz
 
LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1
Hajime Tazaki
 
Docker meetup - PaaS interoperability
Docker meetup - PaaS interoperabilityDocker meetup - PaaS interoperability
Docker meetup - PaaS interoperability
Ludovic Piot
 
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez BlancoOSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
NETWAYS
 
Open Dayligth usando SDN-NFV
Open Dayligth usando SDN-NFVOpen Dayligth usando SDN-NFV
Open Dayligth usando SDN-NFV
Open Networking Perú (Opennetsoft)
 
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylightSDN Onboarding: Open vSwitch CLIs, OpenDaylight
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
Telematika Open Session
 
OpenDaylight Integration with OpenStack Neutron: A Tutorial
OpenDaylight Integration with OpenStack Neutron: A TutorialOpenDaylight Integration with OpenStack Neutron: A Tutorial
OpenDaylight Integration with OpenStack Neutron: A Tutorial
mestery
 
Introduction to the Helium release of OpenDaylight
Introduction to the Helium release of OpenDaylightIntroduction to the Helium release of OpenDaylight
Introduction to the Helium release of OpenDaylight
SDN Hub
 
OpenStack Integration with OpenContrail and OpenDaylight
OpenStack Integration with OpenContrail and OpenDaylightOpenStack Integration with OpenContrail and OpenDaylight
OpenStack Integration with OpenContrail and OpenDaylight
Syed Moneeb
 
Opendaylight SDN Controller
Opendaylight SDN ControllerOpendaylight SDN Controller
Opendaylight SDN Controller
Sumit Arora
 
OpenSCAP Overview(security scanning for docker image and container)
OpenSCAP Overview(security scanning for docker image and container)OpenSCAP Overview(security scanning for docker image and container)
OpenSCAP Overview(security scanning for docker image and container)
Jooho Lee
 
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
Do you know what your Drupal is doing Observe it! (DrupalCon Prague 2022)
sparkfabrik
 
4th SDN Interest Group Seminar-Session 2-2(130313)
4th SDN Interest Group Seminar-Session 2-2(130313)4th SDN Interest Group Seminar-Session 2-2(130313)
4th SDN Interest Group Seminar-Session 2-2(130313)
NAIM Networks, Inc.
 
Open source sdn controllers comparison
Open source sdn controllers comparisonOpen source sdn controllers comparison
Open source sdn controllers comparison
Yashaswi Jain
 
SDN and NFV Friends or Enemies ?
SDN and NFV Friends or Enemies ?SDN and NFV Friends or Enemies ?
SDN and NFV Friends or Enemies ?
Kedar Raval
 
Know about SDN and NFV
Know about SDN and NFVKnow about SDN and NFV
Know about SDN and NFV
Kedar Raval
 
Fn project quick installation guide
Fn project quick installation guideFn project quick installation guide
Fn project quick installation guide
Johan Louwers
 
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFVBharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar
 
SDN and NFV: Friends or Enemies
SDN and NFV: Friends or EnemiesSDN and NFV: Friends or Enemies
SDN and NFV: Friends or Enemies
Justyna Bak
 
OpenStack Meetup - SDN
OpenStack Meetup - SDNOpenStack Meetup - SDN
OpenStack Meetup - SDN
Szilvia Racz
 
LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1
Hajime Tazaki
 
Docker meetup - PaaS interoperability
Docker meetup - PaaS interoperabilityDocker meetup - PaaS interoperability
Docker meetup - PaaS interoperability
Ludovic Piot
 
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez BlancoOSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
OSDC 2012 | OpenNebula Tutorial by Constantino Vazquez Blanco
NETWAYS
 
Ad

More from Eueung Mulyana (20)

FGD Big Data
FGD Big DataFGD Big Data
FGD Big Data
Eueung Mulyana
 
Hyper-Connectivity and Data Proliferation - Ecosystem Perspective
Hyper-Connectivity and Data Proliferation - Ecosystem PerspectiveHyper-Connectivity and Data Proliferation - Ecosystem Perspective
Hyper-Connectivity and Data Proliferation - Ecosystem Perspective
Eueung Mulyana
 
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated WorldIndustry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Eueung Mulyana
 
Blockchain Introduction
Blockchain IntroductionBlockchain Introduction
Blockchain Introduction
Eueung Mulyana
 
Bringing Automation to the Classroom: A ChatOps-Based Approach
Bringing Automation to the Classroom: A ChatOps-Based ApproachBringing Automation to the Classroom: A ChatOps-Based Approach
Bringing Automation to the Classroom: A ChatOps-Based Approach
Eueung Mulyana
 
FinTech & Cryptocurrency Introduction
FinTech & Cryptocurrency IntroductionFinTech & Cryptocurrency Introduction
FinTech & Cryptocurrency Introduction
Eueung Mulyana
 
Open Source Networking Overview
Open Source Networking OverviewOpen Source Networking Overview
Open Source Networking Overview
Eueung Mulyana
 
ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
Eueung Mulyana
 
Open stack pike-devstack-tutorial
Open stack pike-devstack-tutorialOpen stack pike-devstack-tutorial
Open stack pike-devstack-tutorial
Eueung Mulyana
 
Basic onos-tutorial
Basic onos-tutorialBasic onos-tutorial
Basic onos-tutorial
Eueung Mulyana
 
ONOS SDN Controller - Introduction
ONOS SDN Controller - IntroductionONOS SDN Controller - Introduction
ONOS SDN Controller - Introduction
Eueung Mulyana
 
Mininet Basics
Mininet BasicsMininet Basics
Mininet Basics
Eueung Mulyana
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
Eueung Mulyana
 
Cloud Computing: Overview and Examples
Cloud Computing: Overview and ExamplesCloud Computing: Overview and Examples
Cloud Computing: Overview and Examples
Eueung Mulyana
 
selected input/output - sensors and actuators
selected input/output - sensors and actuatorsselected input/output - sensors and actuators
selected input/output - sensors and actuators
Eueung Mulyana
 
Connected Things, IoT and 5G
Connected Things, IoT and 5GConnected Things, IoT and 5G
Connected Things, IoT and 5G
Eueung Mulyana
 
Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+
Eueung Mulyana
 
NodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseNodeMCU with Blynk and Firebase
NodeMCU with Blynk and Firebase
Eueung Mulyana
 
Trends and Enablers - Connected Services and Cloud Computing
Trends and Enablers  - Connected Services and Cloud ComputingTrends and Enablers  - Connected Services and Cloud Computing
Trends and Enablers - Connected Services and Cloud Computing
Eueung Mulyana
 
Digital Ecosystems - Connected Services and Cloud Computing
Digital Ecosystems - Connected Services and Cloud ComputingDigital Ecosystems - Connected Services and Cloud Computing
Digital Ecosystems - Connected Services and Cloud Computing
Eueung Mulyana
 
Hyper-Connectivity and Data Proliferation - Ecosystem Perspective
Hyper-Connectivity and Data Proliferation - Ecosystem PerspectiveHyper-Connectivity and Data Proliferation - Ecosystem Perspective
Hyper-Connectivity and Data Proliferation - Ecosystem Perspective
Eueung Mulyana
 
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated WorldIndustry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Industry 4.0 And Beyond The A.I* For Surviving A Tech-Accelerated World
Eueung Mulyana
 
Blockchain Introduction
Blockchain IntroductionBlockchain Introduction
Blockchain Introduction
Eueung Mulyana
 
Bringing Automation to the Classroom: A ChatOps-Based Approach
Bringing Automation to the Classroom: A ChatOps-Based ApproachBringing Automation to the Classroom: A ChatOps-Based Approach
Bringing Automation to the Classroom: A ChatOps-Based Approach
Eueung Mulyana
 
FinTech & Cryptocurrency Introduction
FinTech & Cryptocurrency IntroductionFinTech & Cryptocurrency Introduction
FinTech & Cryptocurrency Introduction
Eueung Mulyana
 
Open Source Networking Overview
Open Source Networking OverviewOpen Source Networking Overview
Open Source Networking Overview
Eueung Mulyana
 
ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
Eueung Mulyana
 
Open stack pike-devstack-tutorial
Open stack pike-devstack-tutorialOpen stack pike-devstack-tutorial
Open stack pike-devstack-tutorial
Eueung Mulyana
 
ONOS SDN Controller - Introduction
ONOS SDN Controller - IntroductionONOS SDN Controller - Introduction
ONOS SDN Controller - Introduction
Eueung Mulyana
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
Eueung Mulyana
 
Cloud Computing: Overview and Examples
Cloud Computing: Overview and ExamplesCloud Computing: Overview and Examples
Cloud Computing: Overview and Examples
Eueung Mulyana
 
selected input/output - sensors and actuators
selected input/output - sensors and actuatorsselected input/output - sensors and actuators
selected input/output - sensors and actuators
Eueung Mulyana
 
Connected Things, IoT and 5G
Connected Things, IoT and 5GConnected Things, IoT and 5G
Connected Things, IoT and 5G
Eueung Mulyana
 
Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+Connectivity for Local Sensors and Actuators Using nRF24L01+
Connectivity for Local Sensors and Actuators Using nRF24L01+
Eueung Mulyana
 
NodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseNodeMCU with Blynk and Firebase
NodeMCU with Blynk and Firebase
Eueung Mulyana
 
Trends and Enablers - Connected Services and Cloud Computing
Trends and Enablers  - Connected Services and Cloud ComputingTrends and Enablers  - Connected Services and Cloud Computing
Trends and Enablers - Connected Services and Cloud Computing
Eueung Mulyana
 
Digital Ecosystems - Connected Services and Cloud Computing
Digital Ecosystems - Connected Services and Cloud ComputingDigital Ecosystems - Connected Services and Cloud Computing
Digital Ecosystems - Connected Services and Cloud Computing
Eueung Mulyana
 
Ad

Recently uploaded (20)

DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 

OpenDaylight SDN Controller - Introduction

  • 1. 1 / 56 ODL OpenDaylight Eueung Mulyana https://telematika.org/remark/odl CodeLabs | Attribution-ShareAlike CC BY-SA
  • 2. Outline Introduction ODL + Mininet REST Interface Developing ODL Apps 2 / 56
  • 3. OpenDaylight Nitrogen 0.7.1 | Mininet 2.2.2 on RPI3 with Ubuntu 16.04.3 LTS | OVS (Open vSwitch) 2.5.2 VirtualBox 5.2.6 on Ubuntu Xenial 16.04.3. 3 / 56
  • 5. 5 / 56 ODL OpenDaylight OpenDaylight (ODL) is a modular open platform for customizing and automating networks of any size and scale. The OpenDaylight Project arose out of the SDN movement, with a clear focus on network programmability. It was designed from the outset as a foundation for commercial solutions that address a variety of use cases in existing network environments. ODL is driven by a global, collaborative community of vendor and user organizations that continuously adapts to support the industry's broadest set of SDN and NFV use cases. With over 1000 developers, 50 member organizations and supporting approximately 1 billion subscribers around the world, OpenDaylight is quickly evolving integrated toolchains for leading use cases. Ref: Platform Overview - OpenDaylight
  • 6. 6 / 56 ODL Community Founded in February 2013 Run by the Linux Foundation Eclipse Public License 15 founding companies provided software and developers 1000+ contributors 2.5M+ lines of code Mostly Java
  • 8. OpenDaylight Releases - as of 02/2018 Carbon 0.6.2 | Nitrogen 0.7.1 8 / 56
  • 9. 9 / 56 ODL Architecture Model-Driven The core of the OpenDaylight platform is the Model-Driven Service Abstraction Layer (MD-SAL). In OpenDaylight, underlying network devices and network applications are all represented as objects, or models, whose interactions are processed within the SAL. The SAL is a data exchange and adaptation mechanism between YANG models representing network devices and applications. The YANG models provide generalized descriptions of a device or application's capabilities without requiring either to know the speci c implementation details of the other. Within the SAL, models are simply de ned by their respective roles in a given interaction. A "producer" model implements an API and provides the API's data; a "consumer" model uses the API and consumes the API's data. While 'northbound' and 'southbound' provide a network engineer's view of the SAL, 'consumer' and 'producer' are more accurate descriptions of interactions within the SAL. For example, protocol plugin and its associated model can either be a producer of information about the underlying network, or a consumer of application instructions it receives via the SAL.
  • 10. 10 / 56 ODL Architecture Modular & Multiprotocol ODL includes support for the broadest set of protocols in any SDN platform - OpenFlow, OVSDB, NETCONF, BGP and many more - that improve programmability of modern networks and solve a range of user needs. Southbound protocols and control plane services, anchored by the MD-SAL, can be individually selected or written, and packaged together according to the requirements of a given use case. A controller package is built around four key components (odlparent, controller, MD-SAL and yangtools). To this, the solution developer adds a relevant group of southbound protocols plugins, most or all of the standard control plane functions, and some select number of embedded and external controller applications, managed by policy. Each of these components is isolated as a Karaf feature, to ensure that new work doesn't interfere with mature, tested code. OpenDaylight uses OSGi (Equinox) and Maven to build a package that manages these Karaf features and their interactions.
  • 11. 11 / 56 ODL Architecture Modular & Multiprotocol The ODL platform is designed to allow downstream users and solution providers maximum exibility in building a controller to t their needs. This modular framework allows developers and users to: Only install the protocols and services they need Combine multiple services and protocols to solve more complex problems as needs arise Incrementally and collaboratively evolve the capabilities of the open source platform Quickly develop custom, value-added features for highly specialized use cases, leveraging a common platform shared across the industry
  • 12. Getting Started ODL + Mininet 12 / 56
  • 13. 13 / 56 Getting Started Install Java JDK + Env Adjustment Download ODL + Unzip/Untar Run Karaf Install Features Run Mininet (Remote Controller Pointed to the ODL instance)
  • 14. 14 / 56 Installation Java Dependency $ sudo apt-get install unzip zip tree $ sudo apt-get install software-properties-common -y && sudo add-apt-repository ppa:webupd8team/java -y && sudo apt-get update && echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-s sudo apt-get install oracle-java8-installer oracle-java8-set-default -y $ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) $ which java /usr/bin/java $ echo $JAVA_HOME $ nano .profile export JAVA_HOME=/usr/lib/jvm/java-8-oracle/ $ source .profile
  • 15. 15 / 56 Installation Download + Unzip/Untar # direct download $ wget https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/k # indirect: download first + sftp $ sftp -oPort=22 [email protected] sftp> put karaf-0.7.1.zip $ ssh [email protected] $ unzip karaf-0.7.1.zip $ cd karaf-0.7.1 $ ./bin/karaf
  • 16. ~/karaf-0.7.1$ ./bin/karaf Apache Karaf starting up. Press Enter to open the shell now... 100% [========================================================================] Karaf started in 2s. Bundle stats: 52 active, 53 total ________ ________ .__ .__ .__ __ _____ ______ ____ ____ ______ _____ ___.__.| | |__| ____ | |___/ |_ / | ____ _/ __ / | | __ < | || | | |/ ___| | __ / | |_> > ___/| | | ` / __ ___ || |_| / /_/ > Y | _______ / __/ ___ >___| /_______ (____ / ____||____/_____ /|___| /__| /|__| / / / // /_____/ / Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight. opendaylight-user@root>feature feature feature:export-bundles feature:info feat feature:repo-add feature:repo-list feature:repo-refresh feat feature:requirement-remove feature:start feature:stop feat opendaylight-user@root>feature:list --installed Name | Version | Required | State | Repository | Description ---------------------------------------------------------------------------------------------- aries-proxy | 4.0.10 | | Started | standard-4.0.10 | Aries Proxy aries-blueprint | 4.0.10 | | Started | standard-4.0.10 | Aries Blueprint feature | 4.0.10 | | Started | standard-4.0.10 | Features Support shell | 4.0.10 | | Started | standard-4.0.10 | Karaf Shell shell-compat | 4.0.10 | | Started | standard-4.0.10 | Karaf Shell Compatibility deployer | 4.0.10 | | Started | standard-4.0.10 | Karaf Deployer bundle | 4.0.10 | | Started | standard-4.0.10 | Provide Bundle support config | 4.0.10 | | Started | standard-4.0.10 | Provide OSGi ConfigAdmin su diagnostic | 4.0.10 | | Started | standard-4.0.10 | Provide Diagnostic support instance | 4.0.10 | | Started | standard-4.0.10 | Provide Instance support jaas | 4.0.10 | | Started | standard-4.0.10 | Provide JAAS support log | 4.0.10 | | Started | standard-4.0.10 | Provide Log support package | 4.0.10 | | Started | standard-4.0.10 | Package commands and mbeans service | 4.0.10 | | Started | standard-4.0.10 | Provide Service support system | 4.0.10 | | Started | standard-4.0.10 | Provide System support kar | 4.0.10 | | Started | standard-4.0.10 | Provide KAR (KARaf archive) ssh | 4.0.10 | | Started | standard-4.0.10 | Provide a SSHd server on Ka 16 / 56 Run Karaf
  • 17. opendaylight-user@root>feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs opendaylight-user@root>feature:install odl-dlux-core odl-dluxapps-nodes odl-dluxapps-topology opendaylight-user@root>feature:list -i | grep dlux odl-dluxapps-yangui | 0.6.1 | x | Started | odl- odl-dluxapps-yangvisualizer | 0.6.1 | x | Started | odl- odl-dluxapps-yangman | 0.6.1 | x | Started | odl- odl-dluxapps-topology | 0.6.1 | x | Started | odl- odl-dluxapps-nodes | 0.6.1 | x | Started | odl- odl-dlux-core | 0.6.1 | x | Started | odl- opendaylight-user@root>feature:list | grep dlux features-dluxapps | 0.6.1 | | Uninstalled | features-dlux | 0.6.1 | | Uninstalled | odl-dluxapps-applications | 0.6.1 | | Uninstalled | odl-dluxapps-yangui | 0.6.1 | x | Started | odl-dluxapps-yangvisualizer | 0.6.1 | x | Started | odl-unimgr-dlux | 0.3.1 | | Uninstalled | odl-dluxapps-yangman | 0.6.1 | x | Started | odl-dluxapps-topology | 0.6.1 | x | Started | odl-dluxapps-nodes | 0.6.1 | x | Started | odl-dluxapps-yangutils | 0.6.1 | | Uninstalled | odl-dlux-core | 0.6.1 | x | Started | opendaylight-user@root>feature:info odl-dluxapps-applications Feature odl-dluxapps-applications 0.6.1 Description: ODL :: dluxapps :: odl-dluxapps-applications Details: OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For mo Feature has no configuration Feature has no configuration files Feature depends on: odl-dluxapps-nodes 0.6.1 odl-dluxapps-topology 0.6.1 odl-dluxapps-yangui 0.6.1 odl-dluxapps-yangvisualizer 0.6.1 odl-dluxapps-yangman 0.6.1 Feature has no bundles. Feature has no conditionals. 17 / 56 Install Features
  • 18. 18 / 56 Mininet Connect to ODL $ ssh -X [email protected] $ ubuntu@pi:~$ sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.0.156,port=6633 --sw +++ Creating network +++ Adding controller +++ Adding hosts: h1 h2 h3 +++ Adding switches: s1 s2 s3 +++ Adding links: (h1, s1) (h2, s2) (h3, s3) (s2, s1) (s3, s2) +++ Configuring hosts h1 h2 h3 +++ Starting controller c0 +++ Starting 3 switches s1 s2 s3 ... +++ Starting CLI: mininet> # access (note: index.html | cred: admin/admin) # http://192.168.0.156:8181/index.html
  • 19. DLUX - Topology 19 / 56
  • 20. DLUX - Node 20 / 56
  • 21. DLUX - Node - Node Connectors 21 / 56
  • 22. DLUX - Node - Statistics Node Connectors 22 / 56
  • 23. 23 / 56 Mininet pings mininet> h1 ping -c1 h3 PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data. 64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=33.1 ms --- 10.0.0.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 33.188/33.188/33.188/0.000 ms mininet> pingall +++ Ping: testing ping reachability h1 -> h2 h3 h2 -> h1 h3 h3 -> h1 h2 +++ Results: 0% dropped (6/6 received)
  • 24. Topology - h1 ping -c1 h3 24 / 56
  • 27. 27 / 56 REST Interface RESTconf OpenDaylight applications expose con guration and state in the datastore. The REST interface has direct access to the controller datastore. RFC 8040 Restful API for YANG data models and provides lighter- weight interface to network datastores leveraging well known combination of REST and JSON. Con guration data and state data exposed as resources HTTP instead of SSH for transport; JSON in addition to XML for data encoding Ref: OpenDaylight as a Platform for Network Programmability
  • 28. High Level Manageability Architecture - (Eckel/Cisco) 28 / 56
  • 29. 29 / 56 RESTconf http://<IP>:8181/restconf/* # This is where users create/read/update/delete (POST, GET, PUT, DELETE) application configurati http://<IP>:8181/restconf/restconf/config/* # This is where applications write state and users read it (GET). http://<IP>:8181/restconf/restconf/operational/* # Most popular databases are topology and inventory: GET http://<IP>:8181/restconf/operational/network-topology:network-topology/ GET http://<IP>:8181/restconf/operational/opendaylight-inventory:nodes/ # Access via curl curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X # Header: # Authorization (basic): admin/admin # Accept (answer body): application/xml or application/json # Content-Type (request body): application/xml or application/json
  • 30. Yang UI - network-topology | Send 30 / 56
  • 31. Yang UI - network-topology | Display Topology 31 / 56
  • 32. Yang UI - odl-inventory | Send + Preview 32 / 56
  • 34. External via Postman - network-topology 34 / 56
  • 35. External via Postman - odl-inventory 35 / 56
  • 40. 40 / 56 Maven $ apt-cache policy maven maven: Installed: (none) Candidate: 3.3.9-3 Version table: 3.3.9-3 500 500 http://kambing.ui.ac.id/ubuntu xenial/universe amd64 Packages 500 http://kambing.ui.ac.id/ubuntu xenial/universe i386 Packages $ sudo apt install maven $ mvn -v Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.8.0_161, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "4.4.0-112-generic", arch: "amd64", family: "unix" $ mkdir .m2 $ wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/stable/boron/settings.xm $ mkdir devfolder && cd devfolder # cp -n ~/.m2/settings.xml{,.orig} ; wget -q -O - https://raw.githubusercontent.com/opendayligh
  • 41. mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=op -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon Define value for property 'groupId': org.opendaylight.hallo Define value for property 'artifactId': hallo [INFO] Using property: version = 0.1.0-SNAPSHOT Define value for property 'package' org.opendaylight.hallo: : Define value for property 'classPrefix' Hallo: : Define value for property 'copyright': hallo inc. [INFO] Using property: copyrightYear = 2017 Confirm properties configuration: groupId: org.opendaylight.hallo artifactId: hallo version: 0.1.0-SNAPSHOT package: org.opendaylight.hallo classPrefix: Hallo copyright: hallo inc. copyrightYear: 2017 Y: : [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: opendaylight-startup-ar [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.opendaylight.hallo [INFO] Parameter: artifactId, Value: hallo [INFO] Parameter: version, Value: 0.1.0-SNAPSHOT [INFO] Parameter: package, Value: org.opendaylight.hallo [INFO] Parameter: packageInPathFormat, Value: org/opendaylight/hallo [INFO] Parameter: classPrefix, Value: Hallo [INFO] Parameter: package, Value: org.opendaylight.hallo [INFO] Parameter: version, Value: 0.1.0-SNAPSHOT [INFO] Parameter: copyright, Value: hallo inc. [INFO] Parameter: groupId, Value: org.opendaylight.hallo [INFO] Parameter: artifactId, Value: hallo [INFO] Parameter: copyrightYear, Value: 2017 [WARNING] Don't override file /home/em/devfolder/hallo/pom.xml [INFO] Project created from Archetype in dir: /home/em/devfolder/hallo [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:27 min 41 / 56 ODL Archetype
  • 42. ~/devfolder/hallo$ tree . |-- api | |-- pom.xml | |-- src | |-- main | |-- yang | |-- hallo.yang |-- artifacts | |-- pom.xml |-- cli | |-- pom.xml | |-- src | |-- main | |-- java | | |-- org | | |-- opendaylight | | |-- hallo | | |-- cli | | |-- api | | |-- HalloCliCommands.java | | |-- commands | | |-- HalloCliTestCommand.java | | |-- impl | | |-- HalloCliCommandsImpl.java | |-- resources | |-- org | |-- opendaylight | |-- blueprint | |-- cli-blueprint.xml |-- deploy-site.xml |-- features | |-- pom.xml | |-- src | |-- main | |-- features | |-- features.xml |-- impl | |-- pom.xml | |-- src | |-- main | | |-- java 42 / 56 Files & Folders
  • 43. ~/devfolder/hallo$ mvn clean install -DskipTests ... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] ODL :: org.opendaylight.hallo :: hallo-api ......... SUCCESS [03:04 min] [INFO] ODL :: org.opendaylight.hallo :: hallo-impl ........ SUCCESS [ 52.270 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-cli ......... SUCCESS [ 18.734 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-features .... SUCCESS [12:12 min] [INFO] ODL :: org.opendaylight.hallo :: hallo-karaf ....... SUCCESS [11:21 min] [INFO] ODL :: org.opendaylight.hallo :: hallo-artifacts ... SUCCESS [ 1.753 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-it .......... SUCCESS [ 48.589 s] [INFO] hallo .............................................. SUCCESS [ 32.835 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31:49 min [INFO] Finished at: 2018-02-05T03:36:20+07:00 [INFO] Final Memory: 223M/718M [INFO] ------------------------------------------------------------------------ ~/devfolder/hallo$ $ karaf/target/assembly/bin/karaf ~/devfolder/hallo$ karaf/target/assembly/bin/karaf Apache Karaf starting up. Press Enter to open the shell now... 100% [========================================================================] Karaf started in 37s. Bundle stats: 294 active, 294 total ________ ________ .__ .__ .__ __ _____ ______ ____ ____ ______ _____ ___.__.| | |__| ____ | |___/ |_ / | ____ _/ __ / | | __ < | || | | |/ ___| | __ / | |_> > ___/| | | ` / __ ___ || |_| / /_/ > Y | _______ / __/ ___ >___| /_______ (____ / ____||____/_____ /|___| /__| /|__| / / / // /_____/ / Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight. opendaylight-user@root>log:display | grep Hallo 43 / 56 Build
  • 44. $ cat api/src/main/yang/hallo.yang module hallo { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:hallo"; prefix "hallo"; revision "2015-01-05" { description "Initial revision of hallo model"; } } $ rm api/src/main/yang/hallo.yang && nano api/src/main/yang/hallo.yang # new hallo.yang module hallo { yang-version 1; namespace "urn:opendaylight:params:xml:ns:yang:hallo"; prefix "hallo"; revision "2015-01-05" { description "Initial revision of hallo model"; } rpc hallo-world { input { leaf name { type string; } } output { leaf greeting { type string; } } } } $ cd api && mvn clean install -DskipTests ... [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.155 s [INFO] Finished at: 2018-02-05T05:10:55+07:00 [INFO] Final Memory: 55M/580M [INFO] ------------------------------------------------------------------------ 44 / 56 A Simple RPC API
  • 45. $ nano impl/src/main/java/org/opendaylight/hallo/impl/HalloWorldImpl.java /* * Copyright (c) 2016 ODL and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.hallo.impl; import java.util.concurrent.Future; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloS import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloW import org.opendaylight.yangtools.yang.common.RpcResult; import org.opendaylight.yangtools.yang.common.RpcResultBuilder; public class HalloWorldImpl implements HalloService { @Override public Future<RpcResult<HalloWorldOutput>> halloWorld(HalloWorldInput input) { HalloWorldOutputBuilder halloBuilder = new HalloWorldOutputBuilder(); halloBuilder.setGreeting("Hallo " + input.getName()); return RpcResultBuilder.success(halloBuilder.build()).buildFuture(); } } ~/devfolder/hallo$ ll impl/src/main/java/org/opendaylight/hallo/impl/ total 16 drwxrwxr-x 2 em em 4096 Feb 5 05:20 ./ drwxrwxr-x 3 em em 4096 Feb 5 03:02 ../ -rw-rw-r-- 1 em em 1036 Feb 5 03:02 HalloProvider.java -rw-rw-r-- 1 em em 1302 Feb 5 05:20 HalloWorldImpl.java 45 / 56 HalloService
  • 46. $ cat impl/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml <?xml version="1.0" encoding="UTF-8"?> <!-- vi: set et smarttab sw=4 tabstop=4: --> <!-- Copyright (c) 2017 hallo inc. and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html --> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0" odl:use-default-for-reference-types="true"> <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default" /> <reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/> <bean id="provider" class="org.opendaylight.hallo.impl.HalloProvider" init-method="init" destroy-method="close"> <argument ref="dataBroker" /> <argument ref="rpcRegistry" /> </bean> </blueprint> 46 / 56 RPC Registry Reference
  • 47. $ cat impl/src/main/java/org/opendaylight/hallo/impl/HalloProvider.java /* * Copyright (c) 2017 hallo inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.hallo.impl; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.hallo.rev150105.HalloS import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class HalloProvider { private static final Logger LOG = LoggerFactory.getLogger(HalloProvider.class); private final DataBroker dataBroker; private final RpcProviderRegistry rpcProviderRegistry; private RpcRegistration<HalloService> serviceRegistration; public HalloProvider(final DataBroker dataBroker,RpcProviderRegistry rpcProviderRegistry) this.dataBroker = dataBroker; this.rpcProviderRegistry = rpcProviderRegistry; } /** * Method called when the blueprint container is created. */ public void init() { serviceRegistration = rpcProviderRegistry.addRpcImplementation(HalloService.class, new LOG.info("HalloProvider Session Initiated"); } /** * Method called when the blueprint container is destroyed. */ public void close() { 47 / 56 HalloProvider
  • 48. $ cd impl && mvn clean install -DskipTests ... [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.266 s [INFO] Finished at: 2018-02-05T05:31:13+07:00 [INFO] Final Memory: 56M/500M [INFO] ------------------------------------------------------------------------ $ cd .. && mvn clean install -DskipTests ... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] ODL :: org.opendaylight.hallo :: hallo-api ......... SUCCESS [ 28.781 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-impl ........ SUCCESS [ 14.900 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-cli ......... SUCCESS [ 13.989 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-features .... SUCCESS [ 12.178 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-karaf ....... SUCCESS [ 50.341 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-artifacts ... SUCCESS [ 1.773 s] [INFO] ODL :: org.opendaylight.hallo :: hallo-it .......... SUCCESS [ 27.518 s] [INFO] hallo .............................................. SUCCESS [ 28.513 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:02 min [INFO] Finished at: 2018-02-05T05:34:43+07:00 [INFO] Final Memory: 221M/673M [INFO] ------------------------------------------------------------------------ $ karaf/target/assembly/bin/karaf ... opendaylight-user@root>bundle:list | grep hallo 207 | Active | 80 | 0.1.0.SNAPSHOT | ODL :: org.opendaylight.hallo :: h 208 | Active | 80 | 0.1.0.SNAPSHOT | ODL :: org.opendaylight.hallo :: h opendaylight-user@root>feature:list | grep hallo odl-hallo-api | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT odl-hallo | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT odl-hallo-rest | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT odl-hallo-ui | 0.1.0-SNAPSHOT | x | odl-hallo-0.1.0-SNAPSHOT odl hallo cli | 0 1 0 SNAPSHOT | | odl hallo 0 1 0 SNAPSHOT 48 / 56 Build
  • 52. Test via Postman 52 / 56
  • 53. Test via Postman 53 / 56
  • 55. Refs/Resources 1. Platform Overview - OpenDaylight 2. Using the OpenDaylight SDN Controller with the Mininet Network Emulator 3. ODL_Summit_OpenFlow_Tutorial 4. OpenDaylight User Guide - OpenDaylight Documentation Nitrogen documentation 5. Getting Started Guide - OpenDaylight Documentation Nitrogen documentation 6. OpenDaylight Application Developer's tutorial | SDN Hub 7. CiscoDevNet/yangman: YANGMAN o ers dynamically generated UI forms and native JSON representation based on RESTCONF APIs 8. OpenDaylight as a Platform for Network Programmability 9. OpenDaylight Controller:MD-SAL:Startup Project Archetype 10. Developing Apps on the OpenDaylight controller - Nitrogen 11. RFC 8040 - RESTCONF Protocol 55 / 56
  • 56. 56 / 56 ENDEueung Mulyana https://telematika.org/remark/odl CodeLabs | Attribution-ShareAlike CC BY-SA