summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2019-09-06 09:44:39 +0200
committerValerij Fredriksen <valerijf@verizonmedia.com>2019-09-06 09:44:39 +0200
commit7ee01cf769343b2d3ccd3fe7864104aa835d8f4c (patch)
tree0e29b65a021e6e78435155f755b5867531beeb03 /controller-api
parentdae6b8c3f6131c997b3809df535bebfa433bdb25 (diff)
Use bandwidthGbps in clients
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java2
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeRepositoryNode.java11
2 files changed, 1 insertions, 12 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
index 9a44a76b145..cf3b69ab9ce 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
@@ -88,7 +88,7 @@ public interface NodeRepository {
toDouble(node.getMinCpuCores()),
toDouble(node.getMinMainMemoryAvailableGb()),
toDouble(node.getMinDiskAvailableGb()),
- toDouble(node.getBandwidth()) / 1000,
+ toDouble(node.getBandwidthGbps()),
toBoolean(node.getFastDisk()),
toInt(node.getCost()),
node.getCanonicalFlavor(),
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeRepositoryNode.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeRepositoryNode.java
index 05e52e46c26..d723de8ba19 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeRepositoryNode.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeRepositoryNode.java
@@ -82,8 +82,6 @@ public class NodeRepositoryNode {
private Integer cost;
@JsonProperty("minCpuCores")
private Double minCpuCores;
- @JsonProperty("bandwidth")
- private Double bandwidth;
@JsonProperty("bandwidthGbps")
private Double bandwidthGbps;
@JsonProperty("fastDisk")
@@ -353,14 +351,6 @@ public class NodeRepositoryNode {
this.minCpuCores = minCpuCores;
}
- public Double getBandwidth() {
- return bandwidth;
- }
-
- public void setBandwidth(Double bandwidth) {
- this.bandwidth = bandwidth;
- }
-
public Double getBandwidthGbps() {
return bandwidthGbps;
}
@@ -466,7 +456,6 @@ public class NodeRepositoryNode {
", minMainMemoryAvailableGb=" + minMainMemoryAvailableGb +
", cost=" + cost +
", minCpuCores=" + minCpuCores +
- ", bandwidth=" + bandwidth +
", bandwidthGbps=" + bandwidthGbps +
", fastDisk=" + fastDisk +
", description='" + description + '\'' +