get_all_link(self) outputting all possible LINKs for a topo
问题 I have topo with 4 switches and 4 hosts. The switches construct a loop. My goal is to learn the topology of the network when switches are connected to the controller. The problem is that the function get_all_links() returns all of the possible links or at least something that doesn't make sense. I call that function when a port_modify event is fired. Here is the code I use to construct the topo: <Removed Imports to save space> class Simple3PktSwitch(Topo): """Simple topology example.""" def _