summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorMorten Tokle <mortent@verizonmedia.com>2019-11-15 12:57:04 +0100
committerMorten Tokle <mortent@oath.com>2019-11-15 14:04:57 +0100
commit7dafbbd736062e5c58e45e013f50e1b540e334d9 (patch)
tree3b7f56ef401e95be23932aef77b6ed645be0d6ba /node-repository
parent519e504b3128a6b7caf26fca2df93af13235ed1d (diff)
Allow dev hosts with only ipv4
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
index a3714ffe033..302be920950 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
@@ -242,6 +242,11 @@ public class IP {
return pool;
}
+ // For dev hosts, allow only ipv4 addresses
+ if(ipv6AddrCount == 0 && ipv4AddrCount == pool.size()) {
+ return pool;
+ }
+
throw new IllegalArgumentException(String.format("Dual-stacked IP address list must have an " +
"equal number of addresses of each version " +
"[IPv6 address count = %d, IPv4 address count = %d]",