Python mininet project
First of all we have to set up our python virtual environment, make sure that you are in the base directory of project (in command prompt). Enter the command below.
python3 -m venv venv
Then we have to activate created virtual environment.
source venv/bin/activate
On left side of command prompt line there will be shown a "(venv)" text. That means we are activated virtual environment.
Next step is installing required libraries for project.
pip install -r requirements.txt
Then run:
python3 test.py
And have fun of creating networks.
Program service three ways of visualize network.
- From builtin by us python CLI (Creating network in real time)
- From test.py class NetworkTopoPythonAPI, where we could add hosts and switches statically
- From Text file (MininetLinks.txt) where we put MININET LINKS output.