Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ElisaRojas opened this issue Jul 21, 2016 · 3 comments
Open
Assignees

Comments

@ElisaRojas
Copy link
Member

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! 😄

@doriguzzi
Copy link

doriguzzi commented Jul 21, 2016

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
Copy link
Member Author

Thank you for the shorter alternative @doriguzzi :)

@Juanma-Sanchez
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants