Skip to content

Commit bf56584

Browse files
committed
CLOUDSTACK-7973: Proper handler for FenceCommand in simulator
Added a proper handler for FenceCommand in simulator
1 parent a45ddb5 commit bf56584

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/hypervisors/simulator/src/com/cloud/agent/manager/SimulatorManagerImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import com.cloud.agent.api.CreateVolumeFromSnapshotCommand;
5757
import com.cloud.agent.api.DeleteStoragePoolCommand;
5858
import com.cloud.agent.api.DeleteVMSnapshotCommand;
59+
import com.cloud.agent.api.FenceCommand;
5960
import com.cloud.agent.api.GetDomRVersionCmd;
6061
import com.cloud.agent.api.GetHostStatsCommand;
6162
import com.cloud.agent.api.GetStorageStatsCommand;
@@ -419,6 +420,8 @@ public Answer simulate(Command cmd, String hostGuid) {
419420
answer = _mockNetworkMgr.setupPVLAN((PvlanSetupCommand)cmd);
420421
} else if (cmd instanceof StorageSubSystemCommand) {
421422
answer = this.storageHandler.handleStorageCommands((StorageSubSystemCommand)cmd);
423+
} else if (cmd instanceof FenceCommand) {
424+
answer = _mockVmMgr.fence((FenceCommand)cmd);
422425
} else if (cmd instanceof GetRouterAlertsCommand || cmd instanceof VpnUsersCfgCommand || cmd instanceof RemoteAccessVpnCfgCommand || cmd instanceof SetMonitorServiceCommand || cmd instanceof AggregationControlCommand ||
423426
cmd instanceof SecStorageFirewallCfgCommand) {
424427
answer = new Answer(cmd);

0 commit comments

Comments
 (0)