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
This commit is contained in:
Sheng Yang 2012-02-13 16:24:02 -08:00
parent 17ac271c3e
commit 03aa8d727c
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ public class ExternalGuestNetworkGuru extends GuestNetworkGuru {
if (_networkMgr.networkIsConfiguredForExternalNetworking(config.getDataCenterId(), config.getId())) {
profile.setStrategy(ReservationStrategy.Start);
profile.setIp4Address(null);
/* We won't clear IP address, because router may set gateway as it IP, and it would be updated properly later */
//profile.setIp4Address(null);
profile.setGateway(null);
profile.setNetmask(null);
}