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


Flows getting generated automatically

asked 2016-07-17 20:08:15 -0700

mann8352 gravatar image

updated 2016-07-17 20:23:03 -0700

Hello everyone, I am using distribution-karaf-0.4.0-Beryllium. I created a topology and everything was working fine. Then I deleted all flows from all witches. At this instant, no hosts (except those connected with same switches) were able to ping each other. But when I want to ping hosts connected to that particular switch, some flows were automatically got added to the switch. Are these flows the result of LLD packets or something else? What could be the reasons?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-07-19 02:19:15 -0700

karthik330 gravatar image

In L2switch->L2switchMain -Installs flows on each switch based on network traffic . Plz look into this link L2Switch

Configuration File - details config File . After reading this link , you will get to know how the flows are pushed to switch in ODL. If you dont want the default flows , you could change the configurational file of L2.

edit flag offensive delete publish link more

answered 2016-07-19 04:48:33 -0700

mann8352 gravatar image

Thanks @karthik330. I understood. I have deleted all flows from each switch and then added some flows between two hosts using REST api. The flows were added successfully in config datastore and got reflected in operational datastore also. Yet ping between those two hosts did not work properly but it was working properly initially. What is the reason behind that?

edit flag offensive delete publish link more


Have you pushed the flow in bi-directional ? Ping will works only if you have bi-directional flow rule. Ex. for switch openflow:1 , inport -> 1 output -> 3 this is one flow rule. And same time you need to add one more flow inport->3 output-> 1 ; Then ping ll work. Hope you know already

karthik330 ( 2016-07-19 06:02:29 -0700 )edit

Thanks @karthik330 for your response. I have already tried establishing flow in both ways. still hosts are not able to ping each other(it shows host unreachable). Can you help me out of it?

mann8352 ( 2016-07-19 07:08:02 -0700 )edit

verify the flow using ovsdb command to make sure all the flows are set ( sudo ovs-ofctl -O OpenFlow13 dump-flows s2). also try setting table id - 0 for all the flows (Just try).

karthik330 ( 2016-07-19 07:16:20 -0700 )edit

manish@manish-Inspiron-N5010:~$ sudo ovs-dpctl -O OpenFlow13 dump-flows a11 ovs-dpctl: invalid option -- 'O' a11 is switch name. I have set table-id for all flows as 0, still no betterment.

mann8352 ( 2016-07-19 07:43:47 -0700 )edit

If you get error then sudo ovs-vsctl set bridge a11 protocols=OpenFlow13 , and try sudo ovs-ofctl -O OpenFlow13 dump-flows a11 .

karthik330 ( 2016-07-19 07:50:52 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-07-17 20:08:15 -0700

Seen: 54 times

Last updated: Jul 19 '16