Ask Your Question
0

Adding a flow using MD-Sal on HeliumSR2

asked 2015-02-12 07:21:33 -0700

Nuno gravatar image

updated 2015-02-13 00:31:01 -0700

Tony Tkacik gravatar image

Hello.

So I'm trying to add a simple flow following link from ODL wiki. I'm sending the request using postman and the answer I receive is Status 200 OK. The request im sending is the first under the section "Push your flow" on the link.

However when i go to mininet to check the flow the table is still empty and if i use the following command (sh ovs-ofctl dump-flows s1) it gives me the error "version negotiation failed (we support version 0x04, peer supports version 0x01) ovs-ofctl: s1: failed to connect to socket (Broken pipe)".

I'm using Helium SR2, i have odl-restconf odl-openflowplugin-flow-services-ui odl-dlux-core odl-mdsal-apidocs modules installed.

The command that i run in the mininet is the following: 'sudo mn --controller=remote,ip=192.168.56.1,port=6653 --topo=tree,2 --switch=ovsk,protocols=OpenFlow13 --mac'

Am I doing anything wrong, why the request is OK and the flow isn't installed ? How can I debug it ?

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-02-12 22:02:12 -0700

Vishal Thapar gravatar image

The error is because OVS is running in OpenFlow13 and you're quering for flows in 1.0 format. Try this:

ovs-ofctl dump-flows s1 -OOpenFlow13

One reason for original problem could be that controller is not running in 1.3 mode, which could be confirmed from errors in log [can't recall exactly what entries].

Run ovs-vsctl showto check if it shows OVS bridge connected to controller or not. If it doesn't show it to be connected, then it is definitely a case of controller not running in OF1.3 mode. To run controller in 1.3 mode, in your etc/custom.properties uncomment ovsdb.of.version=1.3

Hope this helps.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2015-02-12 07:21:33 -0700

Seen: 427 times

Last updated: Feb 12 '15