Class LearningSwitchManagerSimpleImpl

java.lang.Object
org.opendaylight.openflowplugin.learningswitch.LearningSwitchManagerSimpleImpl
All Implemented Interfaces:
DataTreeChangeListenerRegistrationHolder, LearningSwitchManager

public class LearningSwitchManagerSimpleImpl extends Object implements DataTreeChangeListenerRegistrationHolder, LearningSwitchManager
Listens to packetIn notification.
  • in HUB mode simply floods all switch ports (except ingress port)
  • in LSWITCH mode collects source MAC address of packetIn and bind it with ingress port. If target MAC address is already bound then a flow is created (for direct communication between corresponding MACs)