Repository: cloudstack Updated Branches: refs/heads/4.5 dd508b3b9 -> 3fc392abf
CLOUDSTACK-7973: Proper handler for FenceCommand in simulator Added a proper handler for FenceCommand in simulator Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d55059dd Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d55059dd Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d55059dd Branch: refs/heads/4.5 Commit: d55059dd5d8b276c92733e6cceed644e08c199d0 Parents: dd508b3 Author: Koushik Das <kous...@apache.org> Authored: Wed Nov 26 15:58:47 2014 +0530 Committer: Koushik Das <kous...@apache.org> Committed: Wed Nov 26 15:58:47 2014 +0530 ---------------------------------------------------------------------- .../src/com/cloud/agent/manager/SimulatorManagerImpl.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d55059dd/plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java ---------------------------------------------------------------------- diff --git a/plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java b/plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java index 0ea6855..b0c0bc6 100644 --- a/plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java +++ b/plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java @@ -56,6 +56,7 @@ import com.cloud.agent.api.CreateVMSnapshotCommand; import com.cloud.agent.api.CreateVolumeFromSnapshotCommand; import com.cloud.agent.api.DeleteStoragePoolCommand; import com.cloud.agent.api.DeleteVMSnapshotCommand; +import com.cloud.agent.api.FenceCommand; import com.cloud.agent.api.GetDomRVersionCmd; import com.cloud.agent.api.GetHostStatsCommand; import com.cloud.agent.api.GetStorageStatsCommand; @@ -419,6 +420,8 @@ public class SimulatorManagerImpl extends ManagerBase implements SimulatorManage answer = _mockNetworkMgr.setupPVLAN((PvlanSetupCommand)cmd); } else if (cmd instanceof StorageSubSystemCommand) { answer = this.storageHandler.handleStorageCommands((StorageSubSystemCommand)cmd); + } else if (cmd instanceof FenceCommand) { + answer = _mockVmMgr.fence((FenceCommand)cmd); } else if (cmd instanceof GetRouterAlertsCommand || cmd instanceof VpnUsersCfgCommand || cmd instanceof RemoteAccessVpnCfgCommand || cmd instanceof SetMonitorServiceCommand || cmd instanceof AggregationControlCommand || cmd instanceof SecStorageFirewallCfgCommand) { answer = new Answer(cmd);