mirror of https://github.com/apache/cloudstack.git
Temporary put state info in a state object
This commit is contained in:
parent
0a08829153
commit
3d16a407c9
|
|
@ -435,8 +435,6 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
ScheduledExecutorService _networkStatsUpdateExecutor;
|
||||
ExecutorService _rvrStatusUpdateExecutor;
|
||||
|
||||
Account _systemAcct;
|
||||
|
||||
BlockingQueue<Long> _vrUpdateQueue = null;
|
||||
|
||||
@Override
|
||||
|
|
@ -750,7 +748,7 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
throw new ConfigurationException(msg);
|
||||
}
|
||||
|
||||
_systemAcct = _accountMgr.getSystemAccount();
|
||||
VirtualNwStatus.account = _accountMgr.getSystemAccount();
|
||||
|
||||
final String aggregationRange = configs.get("usage.stats.job.aggregation.range");
|
||||
_usageAggregationRange = NumbersUtil.parseInt(aggregationRange, 1440);
|
||||
|
|
@ -1788,7 +1786,7 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
s_logger.debug("Adding nic for Virtual Router in Control network ");
|
||||
final List<? extends NetworkOffering> offerings = _networkModel.getSystemAccountNetworkOfferings(NetworkOffering.SystemControlNetwork);
|
||||
final NetworkOffering controlOffering = offerings.get(0);
|
||||
final Network controlConfig = _networkMgr.setupNetwork(_systemAcct, controlOffering, routerDeploymentDefinition.getPlan(), null, null, false).get(0);
|
||||
final Network controlConfig = _networkMgr.setupNetwork(VirtualNwStatus.account, controlOffering, routerDeploymentDefinition.getPlan(), null, null, false).get(0);
|
||||
networks.put(controlConfig, new ArrayList<NicProfile>());
|
||||
// 3) Public network
|
||||
if (setupPublicNetwork) {
|
||||
|
|
@ -1817,7 +1815,8 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
defaultNic.setDeviceId(2);
|
||||
}
|
||||
final NetworkOffering publicOffering = _networkModel.getSystemAccountNetworkOfferings(NetworkOffering.SystemPublicNetwork).get(0);
|
||||
final List<? extends Network> publicNetworks = _networkMgr.setupNetwork(_systemAcct, publicOffering, routerDeploymentDefinition.getPlan(), null, null, false);
|
||||
final List<? extends Network> publicNetworks = _networkMgr.setupNetwork(VirtualNwStatus.account, publicOffering, routerDeploymentDefinition.getPlan(), null, null,
|
||||
false);
|
||||
final String publicIp = defaultNic.getIp4Address();
|
||||
// We want to use the identical MAC address for RvR on public
|
||||
// interface if possible
|
||||
|
|
|
|||
Loading…
Reference in New Issue