Dynamic Ring topology generator for Mininet python API.
Please make sure to install Mininet before running the script
By default, this script creates a ring with 4 switches and each switch has 2 hosts attached, you can also modify the parameters to have more switches and hosts in line 41.
Note the parameters: Switches = swnum, Hosts = hnum.
net = Mininet(topo=GenericRing(swnum=4, hnum=2), host=CPULimitedHost, controller=None)Simply just run the script using python.
>sudo python ringtopo.py