@@ -743,8 +743,7 @@ public Map<String, String> quaggaConfigUpdate(final Long zoneId, final String pr
743743 _dcDao .loadDetails (dc );
744744 Map <String , String > details = dc .getDetails ();
745745 qzc .setDefaultValues (details );
746- qzc .setValues (protocol , ospfArea , helloInterval , deadInterval , retransmitInterval , transitDelay , authentication , quaggaPassword , superCIDR ,
747- enabled );
746+ qzc .setValues (protocol , ospfArea , helloInterval , deadInterval , retransmitInterval , transitDelay , authentication , quaggaPassword , superCIDR , enabled );
748747 details = qzc .getValues ();
749748 dc .setDetails (details );
750749 _dcDao .saveDetails (dc );
@@ -825,18 +824,15 @@ private List<String> getAllVpcCidrs() {
825824 List <String > usedSubnets = new ArrayList <String >();
826825 for (Vpc vpc : _vpcDao .listAll ()) {
827826 if (_vpcSrvcDao .areServicesSupportedInVpc (vpc .getId (), Service .VPCDynamicRouting )) {
828- List <NetworkVO > vpcntwkv = _ntwkDao .listByVpc (vpc .getId ());
829- for (NetworkVO vpcntwk : vpcntwkv ) {
830- usedSubnets .add (vpcntwk .getCidr ());
831- }
827+ usedSubnets .add (vpc .getCidr ());
832828 }
833829 }
834830 return usedSubnets ;
835831 }
836832
837833 @ Override
838834 @ ActionEvent (eventType = EventTypes .EVENT_VPC_CREATE , eventDescription = "creating vpc" , create = true )
839- public Vpc createDynamicVpc (final long zoneId , final long vpcOffId , final long vpcOwnerId , final String vpcName , final String displayText , final String netmask ,
835+ public synchronized Vpc createDynamicVpc (final long zoneId , final long vpcOffId , final long vpcOwnerId , final String vpcName , final String displayText , final String netmask ,
840836 String networkDomain , final Boolean displayVpc ) throws ResourceAllocationException {
841837 if (netmask != null ) {
842838 if (!NetUtils .isValidNetmask (netmask )) {
0 commit comments