Ask Your Question
1

DLUX GUI issue : add/delete flows

asked 2015-02-02 22:08:43 -0700

harshahelium gravatar image

updated 2015-02-02 22:11:38 -0700

I have installed HELIUM ODL karaf dist with all the required packages . And i have a mininet running with ODL controller . However the flow menu in the DLUX GUI is not working as expected , i m unable to load the nodes and create a flow .

From the wiki , I got to know there is some issue with DLUX and 'odl-adsal-all odl-adsal-northbound'

I am actually blocked here , not able to add/delete any flows . Is there a fix for this issue or a workaround ?? I would appreciate any help on this .

And also i would be grateful to know if there are other ways of adding/deleting the flows using ODL .

Thankyou harsha

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-02-24 10:50:34 -0700

Nuno gravatar image

You can add/remove flows using the Yang UI. In order to do that you can use Postman, make you XML or Json requests to the controller in order to install or remove flows.

You can also check the ODL documentation that has some request examples. Links below:

EndtoEndFlows

EndtoEndExampleFlows

I think if you want to add the flows using the Dlux UI on the Flows section you have to install the 'odl-adsal-all odl-adsal-northbound' however i never tried it myself and therefore I'm not sure if it'll work. The way i told you above I'm sure it works.

Regards, Nuno B.

edit flag offensive delete publish link more

Comments

Hi Nuno! I tried all the above possibilities. Can you please have a look at this question and answer if possible? https://ask.opendaylight.org/question/2902/unable-to-add-flows-in-opendaylight-helium-using-rest-nor-using-dlux-ui/

pm.preetam ( 2015-03-14 17:18:26 -0700 )edit

It would be nice to add what's your xml or json request. If you are using ip address to match if you don't insert the mask it will sent you the 200 OK however flow won't be inserted on the switch. Are you using that kind of match ?

Nuno ( 2015-03-16 06:49:12 -0700 )edit

I have added the XML in the question. I couldn't add it as a comment here. https://ask.opendaylight.org/question/2902/unable-to-add-flows-in-opendaylight-helium-using-rest-nor-using-dlux-ui/

pm.preetam ( 2015-03-16 14:17:18 -0700 )edit

Well I'm not sure if some parameter is wrong it won't insert like ethernet type 45 does not exist, check if that's the problem. I would advice you to simplify the flow in order to detect which parameters is causing that behaviour.

Nuno ( 2015-03-18 08:40:50 -0700 )edit

Hi NunoB, After install odl-adsal-all odl-adsal-northbound. I can see the menu Flows to add flow, but when I add new Flow, there is no nodes in combox Node. Does I miss any bundle/feature needing installed ?

tomlv ( 2015-04-10 02:16:10 -0700 )edit
0

answered 2015-03-19 04:22:16 -0700

heena gravatar image

@Nuno B i am not able to see flow,connection manager module in UI while trying to install feature on karaf , i am getting below error-, Can you please help me on this.

feature:install odl-adsal-all Error executing command: Error resolving artifact org.apache.aries.transaction:org.apache.aries.transaction.blueprint:jar:1.0.1: Could not transfer artifact org.apache.aries.transaction:org.apache.aries.transaction.blueprint:jar:1.0.1 from/to central ( http://repo1.maven.org/maven2/ ): Error transferring file: Connection timed out opendaylight-user@root>feature:install odl-adsal-northbound Error executing command: Error resolving artifact org.apache.aries.transaction:org.apache.aries.transaction.blueprint:jar:1.0.1: Could not transfer artifact org.apache.aries.transaction:org.apache.aries.transaction.blueprint:jar:1.0.1 from/to central ( http://repo1.maven.org/maven2/ ): Error transferring file: Connection timed out

edit flag offensive delete publish link more

Comments

Well I don't have the adsal module installed. I use the REST API to read, insert and delete flows. That said, I can't help you because I don't know. Check other questions/answers related or try the mailing list. Apologies. Regards, Nuno B.

Nuno ( 2015-03-19 04:30:31 -0700 )edit
0

answered 2015-03-19 05:10:28 -0700

heena gravatar image

updated 2015-03-19 05:17:09 -0700

Thanks @Nuno B for quick reply. Even m not able to add flow using Rest API post also , Rest API put method is returning response code 200 OK but i am not able to see flow using PUT, I am using mozilla Rest API pluggin to add flow for URl and getting below error -

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<errors xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<error>
<error-type>protocol</error-type>
<error-tag>invalid-value</error-tag>
<error-message>Data schema node was not found for flow</error-message>
</error>
</errors>

Below is request xml format i am using with URL http://10.19.10.194:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1 -

<flow xmlns="urn:opendaylight:flow:inventory"> <priority>32</priority> <flow-name>neha</flow-name> <match> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <ipv4-destination>10.0.10.2/24</ipv4-destination> </match> <id>1</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <dec-nw-ttl> </dec-nw-ttl></action> </apply-actions> </instruction> </instructions> </flow>

I am checking the flows added or not using commnad "ovs-ofctl -O openflow10 dump-flows s1" in terminal. Switches are added using mininet. I will be ehelpful if you could provide me request Json/XML format with parameters to pass in POST request.

Please let me know if any other information is required regarding installation in my machine. Regards, Neha Wadhawan

edit flag offensive delete publish link more

Comments

One of the collections that I created is this one. However I'm using OF13 but I think what I use is quite simple so should work in OF10. https://www.getpostman.com/collections/536bbf783c866eb73ea0 Try it out, for me it works. Don't forget to change it to your parameters. This requires you to use postman plugin from chrome I think. Regards, Nuno B.

Nuno ( 2015-03-19 07:00:06 -0700 )edit

sorry to interrupt you again. Just one clarification,shall we use POST method or PUT method to add new flow.

heena ( 2015-03-19 23:22:37 -0700 )edit

PUT method, using POST you will receive the above error you mentioned. If I'm not mistaken

Nuno ( 2015-03-20 17:41:37 -0700 )edit

Yes @Nuno B you are right. Thanks I am able to see flows now, now i upgraded open flow 10 to open flow13.

heena ( 2015-03-22 22:35:43 -0700 )edit

Don't forget to set the controller to of13 (/bin/karaf -of13) and the mininet topology using protocols=openflow13 after defining the type of switch

Nuno ( 2015-03-23 06:28:25 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
3 followers

Stats

Asked: 2015-02-02 22:08:43 -0700

Seen: 4,655 times

Last updated: Mar 19 '15