alshabib | 54ebd9c | 2014-08-27 18:38:41 -0700 | [diff] [blame] | 1 | package org.onlab.onos.of.controller; |
| 2 | |
alshabib | a14f364 | 2014-09-05 09:31:31 -0700 | [diff] [blame^] | 3 | import org.projectfloodlight.openflow.protocol.OFPortStatus; |
| 4 | |
alshabib | 54ebd9c | 2014-08-27 18:38:41 -0700 | [diff] [blame] | 5 | /** |
| 6 | * Allows for providers interested in Switch events to be notified. |
| 7 | */ |
| 8 | public interface OpenFlowSwitchListener { |
| 9 | |
| 10 | /** |
| 11 | * Notify that the switch was added. |
| 12 | * @param dpid the switch where the event occurred |
| 13 | */ |
| 14 | public void switchAdded(Dpid dpid); |
| 15 | |
| 16 | /** |
| 17 | * Notify that the switch was removed. |
| 18 | * @param dpid the switch where the event occurred. |
| 19 | */ |
| 20 | public void switchRemoved(Dpid dpid); |
| 21 | |
alshabib | a14f364 | 2014-09-05 09:31:31 -0700 | [diff] [blame^] | 22 | /** |
| 23 | * Notify that a port has changed. |
| 24 | * @param dpid the switch on which the change happened. |
| 25 | * @param status the new state of the port. |
| 26 | */ |
| 27 | public void portChanged(Dpid dpid, OFPortStatus status); |
alshabib | 54ebd9c | 2014-08-27 18:38:41 -0700 | [diff] [blame] | 28 | } |