CLOUDSTACK-6205: VPC VR start - when create guest nics for the VR, consider networks not only in Implemented state, but in Setup state as well

(cherry picked from commit d009c8c7b229a1bb02834f52d9cac17f46e33349)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
This commit is contained in:
Alena Prokharchyk 2014-03-05 15:38:45 -08:00 committed by Animesh Chaturvedi
parent e0e13434b9
commit 21172a2dc5
1 changed files with 1 additions and 1 deletions

View File

@ -1210,7 +1210,7 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
//3) allocate nic for guest gateway if needed
List<? extends Network> guestNetworks = _vpcMgr.getVpcNetworks(vpcId);
for (Network guestNetwork : guestNetworks) {
if (guestNetwork.getState() == Network.State.Implemented) {
if (guestNetwork.getState() == Network.State.Implemented || guestNetwork.getState() == Network.State.Setup) {
NicProfile guestNic = createGuestNicProfileForVpcRouter(guestNetwork);
networks.put(guestNetwork, new ArrayList<NicProfile>(Arrays.asList(guestNic)));
}