Developing Software-Defined Networks visually with MiniEdit
MiniEdit is a Mininet application in Python that lets you develop Software-Defined Networks in a visual manner. You can create networks visually for a Mininet emulation using MiniEdit, or load an existing Mininet topology (saved as an .mn
file) into MiniEdit to edit it. You may also emulate the networks directly through the MiniEdit's GUI, which invokes Mininet as its backend for the emulations.
In this recipe, we will load an existing .mn
file to recreate a Python program and emulate the network represented by it.
Getting ready
Download MiniEdit:
$ wget https://raw.githubusercontent.com/mininet/mininet/master/examples/miniedit.py
Now, MiniEdit is ready to run as any other Python program:
$ sudo python miniedit.py
How to do it...
Run MiniEdit, find and open 10_7_sdn_miniedit.mn
, which will create a visual representation of the Python program of listing 10.7 listed as follows:
#!/usr/bin/env python # Python Network Programming Cookbook...