This guide will help you to install the tool and run your first network.
- Python 3.6 or higher
pip
(Python package manager) orconda
(Anaconda package manager)
First of all, you need to install Mininet
on your system. Follow the instructions here.
Then, we need to install also Open vSwitch
on your system. Follow the instructions here.
You can clone the repository using git
:
# With SSH
git clone [email protected]:lucadibello/mininet-yaml.git && cd mininet-yaml
# With HTTPS
git clone https://github.com/lucadibello/mininet-yaml.git && cd mininet-yaml
To install the required Python packages, you can either use pip
(to install the packages globally) or use conda
(preferred method) to create a virtual environment and install the packages locally.
Option A: Using conda
:
# Create virtual environment + install packages
conda env create --file=environment.yml
# Activate the virtual environment
conda activate mininet-yaml
Option B: Using pip
:
# Install the required packages
pip install -r requirements.txt
Finally, you can run the tool by providing the path to the YAML file with the network topology description. To test the tool, you can use one of the examples provided in the examples
directory. For example:
python emulation.py examples/complex-network-multilink-with-costs.yaml