jira #ONOS-34: ONOS publisher to publish to ONOS for switch add, remove and port add, remove
diff --git a/src/main/java/net/floodlightcontroller/core/IOFSwitchListener.java b/src/main/java/net/floodlightcontroller/core/IOFSwitchListener.java
index 1bc258b..f8dd52c 100644
--- a/src/main/java/net/floodlightcontroller/core/IOFSwitchListener.java
+++ b/src/main/java/net/floodlightcontroller/core/IOFSwitchListener.java
@@ -17,6 +17,8 @@
package net.floodlightcontroller.core;
+import org.openflow.protocol.OFPhysicalPort;
+
/**
*
*
@@ -44,6 +46,16 @@
public void switchPortChanged(Long switchId);
/**
+ * Fired when ports on a switch area added
+ */
+ public void switchPortAdded(Long switchId, OFPhysicalPort port);
+
+ /**
+ * Fired when ports on a switch area removed
+ */
+ public void switchPortRemoved(Long switchId, OFPhysicalPort port);
+
+ /**
* The name assigned to this listener
* @return
*/