blob: ae5e3a8eb70eb5736cd14e19f07b379792e18761 [file] [log] [blame]
alshabib54ebd9c2014-08-27 18:38:41 -07001package org.onlab.onos.of.controller;
2
alshabiba14f3642014-09-05 09:31:31 -07003import org.projectfloodlight.openflow.protocol.OFPortStatus;
4
alshabib54ebd9c2014-08-27 18:38:41 -07005/**
6 * Allows for providers interested in Switch events to be notified.
7 */
8public 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
alshabiba14f3642014-09-05 09:31:31 -070022 /**
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);
alshabib54ebd9c2014-08-27 18:38:41 -070028}