frenetic-lang / ocaml-openflow

Serialization library for OpenFlow
Other
13 stars 4 forks source link

Not generating flowmods for OpenFlow 1.3 #80

Open basus opened 10 years ago

basus commented 10 years ago

I'm trying to use ocaml-openflow with some hardware switches running openvswitch and OpenFlow 1.3. The switches connect properly but it seems like the SDN.setup_flow_table function does not correctly send out flow mods. I've looked at the links with Wireshark and I can see regular Echo Request and Reply messages, but no flow mods. It also seems like the setup_flow_table function does not return.

mcanini commented 10 years ago

Hmmm... what version of ocaml-openflow are you using?

Do you invoke SDN.setup_flow_table directly?

reitblatt commented 10 years ago

Yeah. He's also using lwt.

mcanini commented 10 years ago

@basus can you try using the latest from master? There were a couple of issues with setup_flow_table that got fixed after we switched to async.

reitblatt commented 10 years ago

But those would only have gotten fixed in async, right?

basus commented 10 years ago

I'm using the current HEAD of the master branch. I am generating my own flow tables. I'm trying to narrow down the problem now.

mcanini commented 10 years ago

@basus: how does your flow table look like?

perhaps we can move the discussion to IRC?

basus commented 10 years ago

Having trouble getting to IRC and my battery is dying. I've narrowed down the problem to the SDN_OpenFlow0x04.ml file. The Common module has a from_action function that seems to not return when given Enqueue actions are given.

jnfoster commented 10 years ago

Hi Basu,

Some questions:

-N

On Tue, Jan 21, 2014 at 4:08 PM, Shrutarshi Basu notifications@github.comwrote:

Having trouble getting to IRC and my battery is dying. I've narrowed down the problem to the SDN_OpenFlow0x04.ml file. The Common module has a from_action function that seems to not return when given Enqueue actions.

— Reply to this email directly or view it on GitHubhttps://github.com/frenetic-lang/ocaml-openflow/issues/80#issuecomment-32963604 .

seliopou commented 10 years ago

From the comments, this seems like it may be related to #32 and #52.

@basus, is this still an issue for you?

basus commented 10 years ago

Yes, the core issue is that the 0x04 code does not seem to have support for dealing with queues at all.

jnfoster commented 10 years ago

This is just one new action though, right? If so, should be easy to add.

-N

On Mon, Feb 3, 2014 at 1:14 PM, Shrutarshi Basu notifications@github.comwrote:

Yes, the core issue is that the 0x04 code does not seem to have support for dealing with queues at all.

Reply to this email directly or view it on GitHubhttps://github.com/frenetic-lang/ocaml-openflow/issues/80#issuecomment-33982632 .