问题
I created a custom topology in mininet and added flows rules to the switches. I can ping the hosts but cannot see the topology on DLUX. I tried with other topology such as single and linear, these work fine. I do not understand what is the problem with the custom topology. If someone could shed some light.
回答1:
try restarting ODL, like this person is doing. I would be suspect that you are hitting some bug in the l2switch project. But, you can debug further by inspecting the flows on each switch in your custom topology. Each switch should have a flow with dl_type=0x88cc that punts to the CONTROLLER. Those are the LLDP packets, which is how ODL will learn the links, which in turn is how DLUX will paint them in your GUI. If the flows aren't there, then you would want to try to figure out why? maybe the switches are ignoring the flow programming (check switch logs), or maybe the flows are not even being sent (you could check ODL logs, or even do a tcpdump to see if openflow rules are being sent to the switch). If the flows are being programmed, and the LLDP packets are being punted to ODL then the problem could be internal to ODL and DLUX.
To be fair, DLUX is a stale project that is slated for removal. There may be bugs you are hitting.
回答2:
It's strange that I can ping all of a sudden now without making any changes. I have faced this problem earlier too, where the controller doesn't work for a week or so and then starts running suddenly.
来源:https://stackoverflow.com/questions/49558036/cant-see-custom-topology-on-dlux