Last modified by Kevin Austin on 2018/11/29 05:19

From version 1.1 >
edited by Kevin Austin
on 2018/10/19 02:45
To version < 2.1 >
edited by Kevin Austin
on 2018/10/19 03:06
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +Setting up a Mininet Test Network
Parent
... ... @@ -1,0 +1,1 @@
1 +Main.WebHome
Content
... ... @@ -1,0 +1,50 @@
1 +In this guide, we'll be setting up a simple mininet test network and adding a flow to allow two hosts to ping each other. There is a mininet container in OpenKilda that is used to perform automated testing of controller builds, but for this guide, we'll instead install mininet on the host operating system. These instructions were written using the October 2018 OpenKilda build v1.1.10.4
2 +
3 +This guide uses python script, datacenterConfigurable.py to create different network topologies and [[can be downloaded here>>attach:datacenterConfigurable.py.zip]]. The script creates a typical datacenter leaf/spine topology where you can specify the numberof racks and hosts per rack when you start mininet. Our network will consist of a simple 2 leaf switches with one host per rack and a single spine switch.
4 +
5 += Modify the docker-compose.yml File =
6 +
7 +To avoid a conflict between mininet and floodlight which both use port 6655, we are going to modify the docker-compose.yml file in the base open-kilda folder. We'll make a copy of the original file to preserve it.
8 +
9 +(% class="box" %)
10 +(((
11 +(% style="font-family:Courier New,Courier,monospace" %)user@host:~~/open-kilda$ **sudo cp docker-compose.yml docker-compose.yml.original**
12 +)))
13 +
14 +Now, open up the docker-compose.yml file in nano
15 +
16 +(% class="box" %)
17 +(((
18 +(% style="font-family:Courier New,Courier,monospace" %)user@host:~~/open-kilda$ **sudo nano docker-compose.yml**
19 +)))
20 +
21 +Scroll down to the floodlight configuration and delete the line (% style="font-family:Courier New,Courier,monospace" %) - "6655:6655"
22 +
23 +(% class="box" %)
24 +(((
25 +(% style="font-family:Courier New,Courier,monospace" %)ports:
26 + - "6653:6653"
27 + - "8180:8080"
28 +-- - "6655:6655"--
29 + - "6642:6642"
30 + - "8081:8080"
31 +depends_on:
32 + kafka:
33 +)))
34 +
35 +After deleting this line, hit control+x , hit Y to save and press Enter to exit.
36 +
37 += Install Mininet =
38 +
39 +Install mininet using apt install
40 +
41 +(% class="box" %)
42 +(((
43 +(% style="font-family:Courier New,Courier,monospace" %)user@host:~~/open-kilda$ **sudo apt install mininet**
44 +)))
45 +
46 +Now that mininet is installed, copy the datacenterConfigurable.py python script to the home directory.
47 +
48 +If you've downloaded the file from a browser on the host ubuntu machine:
49 +
50 +sudo cp
©2018 OpenKilda