On Thu, 01 Nov 2018 04:50:51 +0900, Moh'd Reza Abbasi wrote: > > [1 <multipart/alternative (7bit)>] > [1.1 <text/plain; UTF-8 (7bit)>] > Hey there everyone, > I am working on this simple routing application where it proactively finds > the shortest and the longest paths from a source to a destination, and > installs the flow entries on the switches in a path. > > It uses networkx.shortest_simple_paths() to calculate the paths (this > function calculates the paths and sort them from the shortest to the > longest). In small network topologies the app works fine. In denser > topologies (e.g. 3x3 torus topology) when I use shortest path to forward > traffic it works. However, when I try to install the flow entries for the > longest paths, nothing happens. Even though, the match and flow rules are > created and sent to the switches. They are not being installed and no error > is raised. When I use ovs-ofctl it shows that the flow tables are empty. I > would appreciate it, if someone could tell me what are some of the possible > causes of this behavior.
It seems you are trying to install multiple flow entries with the same match field and priority. This will not work and only the last flow_mod command takes effect. See the section 6.4 of the OpenFlow spec 1.3.5. : For non-overlapping add requests, or those with no overlap checking, : the switch must insert the flow entry in the requested table. If a : flow entry with identical match fields and priority already resides in : the requested table, then that entry, including its duration, must be : cleared from the table, and the new flow entry added. -- IWAMOTO Toshihiro _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel