change setFlowProperties() to setVertexProperties()
diff --git a/src/main/java/net/onrc/onos/graph/DBOperation.java b/src/main/java/net/onrc/onos/graph/DBOperation.java
index b39771e..730f727 100644
--- a/src/main/java/net/onrc/onos/graph/DBOperation.java
+++ b/src/main/java/net/onrc/onos/graph/DBOperation.java
@@ -422,10 +422,21 @@
}
@Override
- public void setFlowProperties(IFlowEntry flowEntry, Map<String, Object> map) {
+ public void setVertexProperties(Vertex vertex, Map<String, Object> map) {
log.debug("setProperties start: size {}", map.size());
- RamCloudVertex v = (RamCloudVertex) flowEntry.asVertex();
+ RamCloudVertex v = (RamCloudVertex) vertex;
v.setProperties(map);
log.debug("setProperties end: size {}, id {}", map.size(), v.getId());
}
+
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ for(ISwitchObject sw: getAllSwitches()) {
+ sb.append("sw: " + sw.getDPID() + "\n");
+ for(IPortObject port: sw.getPorts()) {
+ sb.append(" port: " + port.getPortId() + "\n");
+ }
+ }
+ return sb.toString();
+ }
}