commit | 1222ac5ac858f18be27b69b3dbf3510afae3fb4a | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Wed Jul 09 16:50:28 2014 -0700 |
committer | Gerrit Code Review <gerrit2@gerrit.onos.onlab.us> | Fri Jul 11 09:03:40 2014 -0700 |
tree | 0f14c7ff5909d2ba9308b9207fc552f14ad5e63f | |
parent | 692e68eaf3e13b2242defb2384ec3e2f439320c1 [diff] [blame] |
Add "type" attributes to Topology elements Add type attributes to Topology elements (ONOS-1575, ONOS-1391) - add "type" as String attributes - add "type" to JSON representation Change-Id: I0ab790cfd18eba17e352780b336e5cd49c6fcb1e
diff --git a/src/main/java/net/onrc/onos/core/topology/DeviceImpl.java b/src/main/java/net/onrc/onos/core/topology/DeviceImpl.java index 61de0d2..f331b49 100644 --- a/src/main/java/net/onrc/onos/core/topology/DeviceImpl.java +++ b/src/main/java/net/onrc/onos/core/topology/DeviceImpl.java
@@ -132,6 +132,7 @@ */ @Override public String getType() { - throw new UnsupportedOperationException("Not implemented yet"); + // FIXME assuming device is always in packet layer for now. + return TopologyElement.TYPE_PACKET; } }