Based on this tutorial.
- Multitenancy
- Host migration
- ONOS v1.10.4
- Mininet v2.2.2
git clone https://github.com/sdnwiselab/onos-datacenter.git
cd onos-datacenter/datacenter
mvn clean install
ONOS must be running, then:
onos-app <ONOS IP> install! <PATH_TO_REPO_FOLDER>/datacenter/target/datacenter-<VERSION>.oar
Create the virtual datacenter in Mininet. In a terminal:
cd <PATH_TO_REPO_FOLDER>/scripts && sudo python clos_topo_builder.py -c <NO_OF_CORE_SWITCHES> -f <FANOUT>
In this case we are going to use 2 as NO_OF_CORE_SWITCHES
and 2 as FANOUT
.
Then, from the ONOS command line:
app deactivate org.onosproject.fwd
tenantsmap <PATH_TO_REPO_FOLDER>/datacenter/src/tenants.csv
To deactivate normal routing, load the file containing the list of the tenants and activate multitenancy. Then:
migratehost sourceIP destinationIP
To migrate an host.
Tested with ONOS 1.10.4
Forked from eMarco