WIP: adding utility methods
Change-Id: I078a33e67e4b424dd2f1c4eff362550fb3be3424
diff --git a/src/main/java/net/onrc/onos/datastore/topology/RCDevice.java b/src/main/java/net/onrc/onos/datastore/topology/RCDevice.java
index 0e8afe4..8789492 100644
--- a/src/main/java/net/onrc/onos/datastore/topology/RCDevice.java
+++ b/src/main/java/net/onrc/onos/datastore/topology/RCDevice.java
@@ -18,6 +18,7 @@
import net.onrc.onos.datastore.RCTable;
import net.onrc.onos.datastore.topology.RCLink.STATUS;
import net.onrc.onos.datastore.utils.ByteArrayComparator;
+import net.onrc.onos.datastore.utils.ByteArrayUtil;
public class RCDevice extends RCObject {
@SuppressWarnings("unused")
@@ -147,6 +148,12 @@
return map;
}
+ @Override
+ public String toString() {
+ // TODO OUTPUT ALL?
+ return "[RCDevice " + ByteArrayUtil.toHexStringBuffer(mac, ":") + "]";
+ }
+
public static void main(String[] args) {
// TODO Auto-generated method stub