Add state/status to Topology Element
Updated discovery to populate the status and config type
Changed status to admin status
Added to Kryo Serializer list
ONOS-1428
Change-Id: I38e5ecf2b45b95c148339d127d86592c0e9678ba
diff --git a/src/main/java/net/onrc/onos/core/topology/HostImpl.java b/src/main/java/net/onrc/onos/core/topology/HostImpl.java
index d0964a1..3120015 100644
--- a/src/main/java/net/onrc/onos/core/topology/HostImpl.java
+++ b/src/main/java/net/onrc/onos/core/topology/HostImpl.java
@@ -80,4 +80,24 @@
// FIXME assuming device is always in packet layer for now.
return TopologyElement.TYPE_PACKET_LAYER;
}
+
+ /**
+ * Returns the config state of topology element.
+ *
+ * @return ConfigState
+ */
+ @Override
+ public ConfigState getConfigState() {
+ return ConfigState.NOT_CONFIGURED;
+ }
+
+ /**
+ * Returns the status of topology element.
+ *
+ * @return AdminStatus
+ */
+ @Override
+ public AdminStatus getStatus() {
+ return AdminStatus.ACTIVE;
+ }
}