@@ -1096,7 +1096,7 @@ public Integer getNetworkRate(long networkId, Long vmId) {
10961096 }
10971097 }
10981098 if (ntwkOff != null ) {
1099- return _configMgr .getNetworkOfferingNetworkRate (ntwkOff .getId (), network .getDataCenterId ());
1099+ return _configMgr .getServiceOfferingNetworkRate (ntwkOff .getId (), network .getDataCenterId ());
11001100 }
11011101 final Integer networkRate = NetworkOrchestrationService .NetworkThrottlingRate .valueIn (network .getDataCenterId ());
11021102 if (networkRate != null && networkRate > 0 ) {
@@ -2353,7 +2353,7 @@ public boolean start() {
23532353 */
23542354 protected void addDisabledConfigDriveEntriesOnZone (DataCenterVO zone ) {
23552355 if (zone .getNetworkType () == DataCenter .NetworkType .Advanced ) {
2356- List <PhysicalNetworkVO > physicalNetworks = _physicalNetworkDao .listByZoneAndTrafficType (
2356+ List <PhysicalNetworkVO > physicalNetworks = _pNSPDao .listByZoneAndTrafficType (
23572357 zone .getId (), TrafficType .Guest );
23582358 for (PhysicalNetworkVO physicalNetworkVO : physicalNetworks ) {
23592359 PhysicalNetworkServiceProviderVO provider = _pNSPDao .findByServiceProvider (
@@ -2488,7 +2488,7 @@ public void checkRequestedIpAddresses(long networkId, IpAddresses ips) throws In
24882488 }
24892489 if (mac != null ) {
24902490 if (!NetUtils .isValidMac (mac )) {
2491- throw new InvalidParameterValueException ("Invalid specified Mac address " + mac );
2491+ throw new InvalidParameterValueException ("Invalid specified MAC address " + mac );
24922492 }
24932493 if (_nicDao .findByNetworkIdAndMacAddress (networkId , mac ) != null ) {
24942494 throw new InvalidParameterValueException ("The requested Mac address is already taken! " + mac );
@@ -2831,7 +2831,7 @@ public boolean checkSecurityGroupSupportForNetwork(Account account, DataCenter z
28312831 }
28322832 } else if (CollectionUtils .isNotEmpty (securityGroupsIds )) {
28332833 Network networkWithSecurityGroup = getNetworkWithSGWithFreeIPs (account , zone .getId ());
2834- return networkWithSGWithFreeIPs ( account , zone . getId ()) != null ;
2834+ return networkWithSecurityGroup != null ;
28352835 }
28362836 return false ;
28372837 }
0 commit comments