Skip to content

Commit 7de926b

Browse files
DaanHooglandweizhouapache
authored andcommitted
server: Don't specify ipv6 ranges for shared network (apache#10746)
* assume SLAAC takes care * log info * Update server/src/main/java/com/cloud/network/NetworkServiceImpl.java --------- Co-authored-by: Wei Zhou <[email protected]>
1 parent e201297 commit 7de926b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/com/cloud/network/NetworkServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,8 @@ public Network createGuestNetwork(CreateNetworkCmd cmd) throws InsufficientCapac
17881788
if (ipv4 && Objects.isNull(startIP)) {
17891789
throw new CloudRuntimeException("IPv4 address range needs to be provided");
17901790
}
1791-
if (ipv6 && Objects.isNull(startIPv6)) {
1792-
throw new CloudRuntimeException("IPv6 address range needs to be provided");
1791+
if (ipv6) {
1792+
s_logger.info(String.format("ip range for network '%s' is specified as %s - %s", name, startIPv6, endIPv6));
17931793
}
17941794
}
17951795
Pair<Integer, Integer> interfaceMTUs = validateMtuConfig(publicMtu, privateMtu, zone.getId());

0 commit comments

Comments
 (0)