Skip to content

Commit 271a7df

Browse files
author
Sheng Yang
committed
Fix VPC issue due to VpcVirtualNetworkApplianceManagerImpl.java is not registered
It should be registered rather than VirtualNetworkApplianceManageImpl.java, since it would cover the isolated network case as well.
1 parent 89d6e7e commit 271a7df

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ public boolean configure(final String name, final Map<String, Object> params) th
694694
s_logger.info("Router configurations: " + "ramsize=" + _routerRamSize);
695695

696696
_agentMgr.registerForHostEvents(new SshKeysDistriMonitor(_agentMgr, _hostDao, _configDao), true, false, false);
697-
_itMgr.registerGuru(VirtualMachine.Type.DomainRouter, this);
698697

699698
boolean useLocalStorage = Boolean.parseBoolean(configs.get(Config.SystemVMUseLocalStorage.key()));
700699
_offering = new ServiceOfferingVO("System Offering For Software Router", 1, _routerRamSize, _routerCpuMHz, null,

server/src/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import javax.ejb.Local;
2929
import javax.inject.Inject;
30+
import javax.naming.ConfigurationException;
3031

3132
import org.apache.log4j.Logger;
3233
import org.springframework.stereotype.Component;
@@ -168,6 +169,12 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
168169
@Inject
169170
EntityManager _entityMgr;
170171

172+
@Override
173+
public boolean configure(final String name, final Map<String, Object> params) throws ConfigurationException {
174+
_itMgr.registerGuru(VirtualMachine.Type.DomainRouter, this);
175+
return super.configure(name, params);
176+
}
177+
171178
@Override
172179
public List<DomainRouterVO> deployVirtualRouterInVpc(Vpc vpc, DeployDestination dest, Account owner,
173180
Map<Param, Object> params) throws InsufficientCapacityException,

0 commit comments

Comments
 (0)