mirror of https://github.com/apache/cloudstack.git
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:
parent
e0e13434b9
commit
21172a2dc5
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue