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/SwitchImpl.java b/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java index b00409e..f434e33 100644 --- a/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java +++ b/src/main/java/net/onrc/onos/core/topology/SwitchImpl.java
@@ -199,6 +199,6 @@ */ @Override public String getType() { - throw new UnsupportedOperationException("Not implemented yet"); + return getStringAttribute(TopologyElement.TYPE, TopologyElement.TYPE_PACKET); } }