Class LearningSwitchManagerMultiImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.learningswitch.multi.LearningSwitchManagerMultiImpl
-
- All Implemented Interfaces:
DataTreeChangeListenerRegistrationHolder
,LearningSwitchManager
public class LearningSwitchManagerMultiImpl 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)
-
-
Constructor Summary
Constructors Constructor Description LearningSwitchManagerMultiImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.mdsal.binding.api.DataTreeChangeListener>
getDataTreeChangeListenerRegistration()
Returns the DataTreeChangeListenerRegistration.void
setDataBroker(org.opendaylight.mdsal.binding.api.DataBroker broker)
Sets the DataBroker.void
setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)
Sets the NotificationService.void
setPacketProcessingService(PacketProcessingService packetProcessingService)
Sets the PacketProcessingService.void
start()
Starts learning switch.void
stop()
Stops learning switch.
-
-
-
Method Detail
-
setNotificationService
public void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)
Sets the NotificationService.- Specified by:
setNotificationService
in interfaceLearningSwitchManager
- Parameters:
notificationService
- the notificationService to set
-
setPacketProcessingService
public void setPacketProcessingService(PacketProcessingService packetProcessingService)
Sets the PacketProcessingService.- Specified by:
setPacketProcessingService
in interfaceLearningSwitchManager
- Parameters:
packetProcessingService
- the packetProcessingService to set
-
setDataBroker
public void setDataBroker(org.opendaylight.mdsal.binding.api.DataBroker broker)
Sets the DataBroker.- Specified by:
setDataBroker
in interfaceLearningSwitchManager
- Parameters:
broker
- the data to set
-
start
public void start()
Starts learning switch.- Specified by:
start
in interfaceLearningSwitchManager
-
stop
public void stop()
Stops learning switch.- Specified by:
stop
in interfaceLearningSwitchManager
-
getDataTreeChangeListenerRegistration
public org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.mdsal.binding.api.DataTreeChangeListener> getDataTreeChangeListenerRegistration()
Description copied from interface:DataTreeChangeListenerRegistrationHolder
Returns the DataTreeChangeListenerRegistration.- Specified by:
getDataTreeChangeListenerRegistration
in interfaceDataTreeChangeListenerRegistrationHolder
-
-