commit | 308337ce2ddb4f5ad4381c03532854db5502087a | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Wed Jun 11 10:25:44 2014 -0700 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Wed Jun 11 10:32:04 2014 -0700 |
tree | 7eeb56d73431fc40bb5cbd20bb010ad7b9cb8c9c | |
parent | c00f5c2f821de6cd59cc7922ef27d44c109b3c2c [diff] [blame] |
Renamed "devices" to "hosts" in the Topology REST API: * REST call path rename: http://%s:%s/wm/onos/topology/devices -> http://%s:%s/wm/onos/topology/hosts * Topology output JSON format: renamed field "devices" to "hosts". OLD: { ... "devices": [...], ... } NEW: { ... "hosts": [...], ... } TODO in (a) separate commit(s): * Renaming of "Device/Devices" and "device/devices" in the Java API * Renaming of "Device/Devices" and "device/devices" in the backend implementation Change-Id: Ic70bf166f885a1a5ba7d8d33326ff43f84d2c506
diff --git a/src/main/java/net/onrc/onos/core/topology/web/TopologyWebRoutable.java b/src/main/java/net/onrc/onos/core/topology/web/TopologyWebRoutable.java index 8eb18d4..1f224d2 100644 --- a/src/main/java/net/onrc/onos/core/topology/web/TopologyWebRoutable.java +++ b/src/main/java/net/onrc/onos/core/topology/web/TopologyWebRoutable.java
@@ -18,7 +18,7 @@ // Topology API router.attach("", TopologyResource.class); - router.attach("/devices", DevicesResource.class); + router.attach("/hosts", DevicesResource.class); router.attach("/links", LinksResource.class); router.attach("/switches", SwitchesResource.class);