Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Lithium: see/add/remove flow rules dlux

asked 2015-09-28 04:30:45 -0800

Rui gravatar image

updated 2015-09-28 04:46:10 -0800

Hi there,

I would like to know how can I see, add and remove openflow forwarding rules on ODL DLUX.

I've seen some videos where there's a menu/feature where it's very simple to do it but from older versions (or maybe from some feature that I wasn't able to find out).


So, if it's possible, I would like to know how to do it in a simple way with ODL Lithium DLUX (do I need to install any specific feature? where to go after that?)


How can I do it (see/add/remove flow rules) but by myself? I want to be able to get access to the requests sent by the ovswitch to ODL, analyse the data and then return/insert a flow rule on ODL. Well, for this second question I would be happy if you could just point me out in the right direction (readings, examples...). If you can do even better than that, awesome.


PS. just to give you an idea where I'm at this moment: I've been able to install ODL and dlux. I'm using mininet for simulations. I can see my topology on ODL but can't see any rules. I've been able to manually insert/removing rules in the ovs by using the command "ovs-ofctl add|remove-flow" and to point to the odl remote controller.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2015-10-07 10:37:42 -0800

rvdpdotorg gravatar image

I install the features odl-dlux-all and odl-openflowplugin-flow-services-ui

You should see the Yang UI in dlux now. Expand the opendaylight-inventory menu. For configuring expand the config menu. For retrieving information use the operational menu.

An easy way to test if this is working for you is to retrieve node information. Navigate to / click on operational -> nodes

Below in path you'll see:


GET is selected. Click on send. You should see a list of your openflow switches returned.

Configuring a flow is more tricky. You need to get all fields correct. Navigate to:

config -> nodes -> node {id} -> table {id} -> flow {id}

Fill in your openflow switch name for node, 0 for table and choose a flow (sequence) number, e.g. 5 (must be unique for each entry). You should select PUT now. Click on + (add item). Expand match. Fill in a number for in-port, e.g. 42. At the bottom you need to insert the table number again (table_id). Click put and you should see a flow entry like:

cookie=0x0, duration=7.384s, table=0, npackets=n/a, nbytes=0, in_port=42 actions=drop

This interface is useful to explore flow syntax. When you have figured out the correct syntax, you can use the "Show preview" to look at the json string. This string can be used with any REST client, e.g. curl or postman. For postman: as URL you need to use:


Content-type: application/json

Accept: application/json

Basic Auth: admin/admin

Use JSON and paste the string in the body part. Clicking send should do the trick now. Hope this helps you get started.

edit flag offensive delete publish link more

answered 2016-03-07 19:08:31 -0800

santosh gravatar image

Hi I tried the above method. I am using Postman to write flows and i am getting 200 OK message. But i am unable to see the flows in the ODL web page. I am running ODL Lithium. Is there anyhing i am missing?

edit flag offensive delete publish link more

answered 2016-04-08 12:26:31 -0800


I am new to Opendaylight. I too, wondered what happened to all of the "flow tab" interface elements that were demonstrated in several videos on Opendaylight.

The Yang UI interface is interesting, but not exactly user friendly (as in dumb network admins).

It appears opendaylight has become dramatically less usable as an OpenFlow controller since Lithium.

Scott Franco

edit flag offensive delete publish link more

answered 2016-04-11 05:12:53 -0800

karthik330 gravatar image

updated 2016-04-11 05:13:58 -0800

Hi ,

For Flow related stuffs plz go through these links .

1 link text

2 link text

3 link text

After referring You can easily add / remove / update Flows from Restconf/postman/ even dlux UI itself. You can also check the inserted flows using sudo ovs-ofctl -O OpenFlow13 dump-flows s1 command .

Thanks, -Karthik

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

Question Tools

1 follower


Asked: 2015-09-28 04:30:45 -0800

Seen: 6,368 times

Last updated: Apr 11 '16