Skip to content

Commit 03aa8d7

Browse files
author
Sheng Yang
committed
bug 13643: Fix assigned router gateway IP
The ExternalGuestNetworkGuru need to respect some of existed IP assignment, especially router. Otherwise router can't get correct IP address(gateway IP). status 13643: resolved fixed Reviewed-by: Alex
1 parent 17ac271 commit 03aa8d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎server/src/com/cloud/network/guru/ExternalGuestNetworkGuru.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ public NicProfile allocate(Network config, NicProfile nic, VirtualMachineProfile
213213

214214
if (_networkMgr.networkIsConfiguredForExternalNetworking(config.getDataCenterId(), config.getId())) {
215215
profile.setStrategy(ReservationStrategy.Start);
216-
profile.setIp4Address(null);
216+
/* We won't clear IP address, because router may set gateway as it IP, and it would be updated properly later */
217+
//profile.setIp4Address(null);
217218
profile.setGateway(null);
218219
profile.setNetmask(null);
219220
}

0 commit comments

Comments
 (0)