Ask Your Question
0

Adding flows via API-Restconf

asked 2015-06-30 09:09:11 -0700

Wayko gravatar image

I'm using Helium-SR3 with mininet and openFlow 1.0.

ODL has these features:

opendaylight-user@root>feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core

And the command to launch mininet is the following:

sudo mn --topo=tree,3 --controller=remote,127.0.0.1 --mac --switch=ovsk,protocols=OpenFlow10

When I follow the steps to add flow from Wiki there's no problem to make the flow push with postman.

The problem comes when I try to get the flow table. I can't see the flow I pushed, in the example itself neither. i'm abel to see it with: http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/

In other hand I can't identify the flow in OVS Switch.

If I select the nodes from the DB using xsql after the flow push it returns an other node with the same ID of the put made with postman. Dump at the end.

Is the flow being added correctly? I'm missing something?

Thanks,

Sorry but I cant attach files.

opendaylight-user@root>xsql 'select * from nodes/node;'

|serial-number|software|initial-capability|ip-address|current-capability|description|id|hardware|manufacturer|connected|

|None |2.0.2 | |127.0.0.1 | |None |openflow:2|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:3|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:4|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:5|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:6|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:7|Open vSwitch|Nicira, Inc.| |

|None |2.0.2 | |127.0.0.1 | |None |openflow:1|Open vSwitch|Nicira, Inc.| |

| --------- | -------- | | ----- | ------ | |openflow:1| ------ | ------ | |

Total Number Of Records=8

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-02 10:20:10 -0700

Hello,

Maybe this post will help you: https://ask.opendaylight.org/question/4082/how-to-write-flow-in-karaf/?answer=4134#post-id-4134

Cheers

edit flag offensive delete publish link more

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
1 follower

Stats

Asked: 2015-06-30 09:09:11 -0700

Seen: 546 times

Last updated: Jul 02 '15