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

1

Unable to add flows in OpenDaylight Helium using REST nor using DLUX UI

asked 2015-03-13 23:51:43 -0800

pm.preetam gravatar image

updated 2015-03-16 14:24:55 -0800

QUESTION: Using Postman, I am trying to insert the flows referring to this link here . I took care of the headers and made changes in the http request parameters in sync with the xml body parameters. Example: http://192.168.2.16:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/1/flow/1

The XML that I am trying to add is,

<?xml version="1.0" encoding="UTF-8" standalone="no"?><flow xmlns="urn:opendaylight:flow:inventory">
<strict>false</strict>
<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
                <order>0</order>
                <drop-action/>
            </action>
        </apply-actions>
    </instruction>
</instructions>
<table_id>1</table_id>
<id>10</id>
<cookie_mask>255</cookie_mask>
<installHw>false</installHw>
<match>
    <ethernet-match>
        <ethernet-type>
            <type>45</type>
        </ethernet-type>
        <ethernet-destination>
            <address>5e:20:34:f7:ca:f8</address>
        </ethernet-destination>
        <ethernet-source>
            <address>e2:82:72:29:ab:4f</address>
        </ethernet-source>
    </ethernet-match>
</match>
<hard-timeout>12</hard-timeout>
<cookie>4</cookie>
<idle-timeout>34</idle-timeout>
<flow-name>FooXf4</flow-name>
<priority>2</priority>
<barrier>false</barrier>

When I Send the above PUT http request, the Status is 200 OK. But I am unable to view the installed flows in the flows tab in OpenDaylight! However, I succeeded using the following request http://192.168.2.9:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1

It would be great if you let me know the difference and also why isn't restconf working? How can I add flows in the ODL controller to support all the Openflow 1.3 actions?

My system configurations:

I have my OpenDaylight Helium version up running in a Ubuntu VM, with the following features installed -

odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core install odl-mdsal-clustering odl-adsal-compatibility odl-nsf-all odl-openflowplugin-all odl-adsal-northbound odl-flow-model odl-flow-services

On another VM, I have a Mininet 2.2.0 running with Open vSwitch 2.3.1 (Manually upgraded following the steps from here) to support Openflow 1.3

I created a topology using $sudo mn --switch=ovsk --controller=remote,ip=192.168.2.16 and also checked for the switch's protocol supported using this command - $sudo ovs-vsctl list bridge s1 | grep protocols and it returned protocols : [”OpenFlow13”]

edit retag flag offensive close merge delete

Comments

I have basically the same setup and I'm having the exact same problem. Has anyone found a solution to this? What are we missing?

jpete2477 ( 2015-04-09 15:12:18 -0800 )edit

Are you instructing the controller to work with Openflow13 using the flag -of13 when starting the controller ?

Nuno ( 2015-07-02 17:07:20 -0800 )edit

Hi , Were you able to figure out the answer for this problem. Kindly share the same it could help others, Thanks

rags1357 ( 2016-06-01 11:55:55 -0800 )edit

3 answers

Sort by » oldest newest most voted
0

answered 2015-03-14 17:38:42 -0800

pm.preetam gravatar image

$sudo mn --switch=ovsk,protocols=Openflow13 --controller=remote,ip=192.168.2.16 The above creates the topology without any error but pingall doesn't work!

edit flag offensive delete publish link more
0

answered 2015-07-02 10:22:05 -0800

Edu gravatar image

Hi! when do you say that with this API ( http://192.168.2.9:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1 ) you are able to install the flows, are you also using helium release? or hidrogen in this case?

Thank you very much.

edit flag offensive delete publish link more

Comments

HI, It was helium release..

pm.preetam ( 2015-07-04 11:43:56 -0800 )edit

Thanks! and which bundles have you installed?

Edu ( 2015-07-05 05:51:11 -0800 )edit

Hi, how to install flow from that url in opendaylight lithium and helium?

ryandahp ( 2015-11-12 17:12:24 -0800 )edit
0

answered 2015-07-03 09:51:14 -0800

jpete2477 gravatar image

updated 2015-07-03 09:52:22 -0800

It appears that the missing link here is how ODL interacts with MiniNet. In order to get things to communicate properly you have to install the right modules in ODL. Using this line in Karaf solved my problem of not being able to "create" flows in MiniNet.

feature:install odl-base-all odl-aaa-authn odl-restconf odl-adsal-northbound odl-mdsal-apidocs odl-l2switch-switch odl-dlux-all odl-openflowplugin-all

I stumbled upon this answer here: https://wiki.opendaylight.org/view/InstallOnUbuntu_14.04

Hope that helps.

edit flag offensive delete publish link more

Comments

Thank you. I will try that :)

pm.preetam ( 2015-07-04 11:44:39 -0800 )edit
1

the above group of features could be boiled down (or up, I guess) to just be "odl-l2switch-switch-ui". that will in turn install all of it's dependencies which will include the authn, openflow, etc.

jamoluhrsen ( 2015-07-06 16:27:06 -0800 )edit

odl-l2switch-switch-ui doesn't seem to be installing all the required bundles for dlux . I have a similar issue , opened a thread here https://ask.opendaylight.org/question/4377/dlux-web-ui-can-see-only-topology/

joshua.jeyaraj ( 2015-07-15 00:59:49 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
3 followers

Stats

Asked: 2015-03-13 23:51:43 -0800

Seen: 4,261 times

Last updated: Jul 03 '15