Ask Your Question
0

How to set up openvswitch > 2.3 and ODL so l2-switch works?

asked 2015-12-13 04:22:58 -0700

kagouros gravatar image

Hi,

I have a fresh setup with OpenVSwitch 2.3 (and a second with 2.4). If I add the controller, no switching happens. I found googling around that it is advisable to set the protocols on the bridge controlled by ODL to OpenFlow13. Still nothing happens. If I push a flow with a low priority that has the normal-action switching happens and I can do other flows to supersede this. However isn't the l2-switch app supposed to accept the new packets and then do the switching logic? Do I need to set 'controller' as default action? And no, downgrading OVS is not an option.

Regards,

Konstantin

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-15 08:39:15 -0700

runamuck gravatar image

Try these commands.

$ ./bin/karaf clean

Then from the Karaf prompt:

opendaylight-user@root>feature:install odl-l2switch-switch-ui

Now back to the shell (Substitute your switch name and IP)...

$ sudo ovs-vsctl set bridge br0 protocols=OpenFlow13
$ sudo ovs-vsctl set-controller br0 tcp:0.0.0.0:6633
$ sudo ovs-vsctl set controller br0 connection-mode=out-of-band
$ sudo ovs-vsctl list controller
edit flag offensive delete publish link more

Comments

Hi, thanks for Your answer. Because I am curious: what does karaf clean do? Kill everything or just the state? 2nd what is different with connection-mode out-of-band? THanks, Konstanitn

kagouros ( 2015-12-15 08:43:00 -0700 )edit

the "clean" option just deletes your data directory that is populated with data when you have previously started karaf. you can see the code here: https://github.com/opendaylight/controller/blob/master/karaf/opendaylight-karaf-resources/src/main/resources/bin/karaf#L376

jamoluhrsen ( 2015-12-15 08:53:54 -0700 )edit

Out-of-band mean the controller is on a different network. So if you point to 127.0.0.1 (Localhost) as your controller you'd want to set to out-of-band (OOB).

runamuck ( 2015-12-15 09:02:05 -0700 )edit

indeed the controller is on another network on a different machine. Setting the connection mode without karat clean now gives me lot of message deserialization exceptions.

kagouros ( 2015-12-15 09:07:39 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-12-13 04:22:58 -0700

Seen: 988 times

Last updated: Dec 15 '15