fp7-netide / Usecases

Contains the implementations of the use cases and target scenarios generated in the project
Eclipse Public License 1.0
7 stars 0 forks source link

Selecting OF switch version for UC2_IITSystem.py Mininet script #4

Open ElisaRojas opened 8 years ago

ElisaRojas commented 8 years ago

Hi,

It would be nice to have a parameter in the script to choose the OF version to be run. Maybe use OF1.0 by default, and the parameter would be of10 or of13, to choose the version.

To change the version internally, we just need to create the following variable:

sconfig = {'protocols': 'OpenFlow10'} or sconfig = {'protocols': 'OpenFlow13'} #of10 or of13

and then, just call all the switches with that variable:

self.addSwitch(..., **sconfig)

Could you do that @Juanma-Sanchez ? Thank you! :smile:

doriguzzi commented 8 years ago

Hi Elisa,

thanks for the support. I solved by copying from another script that I used for the NetSoft demo. Basically I added one line in the script where I indicate the OF version:

switch = partial(OVSSwitch,protocols='OpenFlow10') net = Mininet( topo=IITSTopo, controller=RemoteController, autoSetMacs = True, switch=switch )

This should be manageable that modifying all the addSwitch calls...

Hope this helps

ElisaRojas commented 8 years ago

Thank you for the shorter alternative @doriguzzi :)

Juanma-Sanchez commented 8 years ago

Hi,

I have modified the mininet scripts and now the switches will use OpenFlow1.0 by default and 1.3 if mininetStar.sh is called with the argument of13. Unfortunately the application doesn't support Openflow 1.3 yet.