Deploying Opendaylight in Amazon Web Services (AWS)
The OpenDaylight (ODL) is one of the leading Open source Platform uniting the industry around a common SDN platform.ODL provides a flexible common platform underpinning a wide breadth of applications and Use Cases. Opendaylight is used as a SDN Controller in the On premises setup. This blog outlines steps for deploying Opendaylight in one of the leading cloud service provider AWS for Training, Exploration and development purposes
Provision VM in AWS
- Create a Security group ODL-SG and open Port 22, 8080
- Create a Keypair
- Launch AWS EC2 Instance using AMI (ami-efe09bf8 – Ubuntu 16.04 64-Bit) in Virginia Region with instance type T2.medium
- Allocate Elastic IP
- Associate Elastic IP to the VM
- Access VM using terminal client
- OpenDaylight Controller is developed in Java and runs in a JVM. Hence we need to Install openjdk using the below command
$ apt-get install openjdk-8-jdk
- Download Opendaylight Boron package from the opendaylight
- Install OpenDaylight
Uncompress it as root, and start OpenDaylight using the command below,
$ tar xvfz distribution-karaf-0.5.3-Boron-SR3.tar.gz
$ cd distribution-karaf-0.5.3-Boron-SR3/
Start process would take minimum 3 to 5 minutes to get completed.
- Connect to Karaf Shell
Now, you should be in OpenDaylight’s console. By default, the karaf distribution has no features enabled. Hence we have to Install all the basic and required features like below.
[email protected] $> feature:install odl-base-all odl-aaa-authn odl-restconf
odl-adsal-northbound odl-mdsal-apidocs odl-ovsdb-openstack
Once the installation is completed you can login to the UI with http://:8080 with username and password as ‘admin’
Now, the opendaylight boron release is successfully installed in the VM instance.
$ apt-get update
$ apt-get install mininet
Simulate a sample network topology with the below command.
$ sudo mn –controller=remote,ip=localhost,port=6633 –topo linear,4
Once the mininet created the switches and hosts, you can type the below command and check the opendaylight UI to confirm the topology discovery.
On demand provisioning with a time based access to Opendaylight on AWS is available through Cloudenabler’s ClaaS which can be used for Opendaylight training and learning.