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?

2 answers

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.

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?

Comments

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