Squashed commit of the following:
commit e9604083c5374bf5eac889e82cf54bb0b22ef763
Author: Naoki Shiota <n-shiota@onlab.us>
Date: Wed Oct 23 11:51:00 2013 -0700
Refactored NetworkGraphPublisher and related modules to be ready for implementing event notification.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/core/ISwitchStorage.java b/src/main/java/net/onrc/onos/ofcontroller/core/ISwitchStorage.java
index bc50049..b7825f9 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/core/ISwitchStorage.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/core/ISwitchStorage.java
@@ -18,27 +18,29 @@
/*
* Update the switch details
*/
- public void update(String dpid,SwitchState state, DM_OPERATION op);
- /*
- * Associate a port on switch
- */
- public void addPort(String dpid, OFPhysicalPort port);
- /*
- * Delete a port on a switch by num
- */
- public void deletePort(String dpid, short port);
+ public boolean updateSwitch(String dpid, SwitchState state, DM_OPERATION op);
/*
* Add a switch and all its associated ports
*/
- public void addSwitch(IOFSwitch sw);
+ public boolean addSwitch(IOFSwitch sw);
/*
* Add a switch
*/
- public void addSwitch(String dpid);
+ public boolean addSwitch(String dpid);
/*
* Delete switch and associated ports
*/
- public void deleteSwitch(String dpid);
-
-
+ public boolean deleteSwitch(String dpid);
+ /*
+ * Update the port details
+ */
+ public boolean updatePort(String dpid, short port, int state, String desc);
+ /*
+ * Associate a port on switch
+ */
+ public boolean addPort(String dpid, OFPhysicalPort port);
+ /*
+ * Delete a port on a switch by num
+ */
+ public boolean deletePort(String dpid, short port);
}