diff options
author | Morten Tokle <mortent@verizonmedia.com> | 2019-11-15 12:57:04 +0100 |
---|---|---|
committer | Morten Tokle <mortent@oath.com> | 2019-11-15 14:04:57 +0100 |
commit | 7dafbbd736062e5c58e45e013f50e1b540e334d9 (patch) | |
tree | 3b7f56ef401e95be23932aef77b6ed645be0d6ba /node-repository | |
parent | 519e504b3128a6b7caf26fca2df93af13235ed1d (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.java | 5 |
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]", |