diff --git a/server/src/com/cloud/network/NetworkManagerImpl.java b/server/src/com/cloud/network/NetworkManagerImpl.java index fb24ff16589..8a6eaa917b0 100755 --- a/server/src/com/cloud/network/NetworkManagerImpl.java +++ b/server/src/com/cloud/network/NetworkManagerImpl.java @@ -993,7 +993,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag vo.setDeviceId(deviceId++); } - vo.setReservationStrategy(profile.getReservationStrategy()); + if (profile.getReservationStrategy() != null) { + vo.setReservationStrategy(profile.getReservationStrategy()); + } vo.setDefaultNic(profile.isDefaultNic()); @@ -1028,7 +1030,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag vo.setIp4Address(profile.getIp4Address()); vo.setIp6Address(profile.getIp6Address()); vo.setMacAddress(profile.getMacAddress()); - vo.setReservationStrategy(profile.getReservationStrategy()); + if (profile.getReservationStrategy() != null) { + vo.setReservationStrategy(profile.getReservationStrategy()); + } vo.setBroadcastUri(profile.getBroadCastUri()); vo.setIsolationUri(profile.getIsolationUri()); vo.setNetmask(profile.getNetmask()); @@ -1216,7 +1220,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag if (profile.getStrategy() != null) { nic.setReservationStrategy(profile.getStrategy()); } - + updateNic(nic, network.getId(), 1); } else { profile = new NicProfile(nic, network, nic.getBroadcastUri(), nic.getIsolationUri(), networkRate);