Hello,

I have a question about the topology discovery implementation as it relates
to physical cables looped back from a switch to itself.  I noticed that
Ryu's topology discovery implementation was not reporting links made of
switches connected back to themselves through the REST API provided by the
rest_topology.py app.

Digging through the code a bit, I found out that is caused by the two lines
of code at
https://github.com/osrg/ryu/blob/v3.25/ryu/topology/switches.py#L778.  I
tried removing those two lines, and I found that afterwards I was able to
see the links in the topology REST API.  However, I am not sure if removing
that code has any unintended side effects.

Do you all recall what the purpose of that check is, and whether it is
necessary?  I acknowledge that having a switch connected to itself with a
cable is a little bit weird, but is there any particular reason to hide
that from the topology description when it is actually present?

Thank you,
-- 

Tim Upthegrove
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to