Skip to content

Commit 8295cb0

Browse files
author
Sheng Yang
committed
CLOUDSTACK-3250: Add PvlanSetupCommand into maintenance mode allowed command list
Then the rule in the old host can be cleared.
1 parent 089cbb6 commit 8295cb0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎server/src/com/cloud/agent/manager/AgentAttache.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import com.cloud.agent.api.MaintainCommand;
4545
import com.cloud.agent.api.MigrateCommand;
4646
import com.cloud.agent.api.PingTestCommand;
47+
import com.cloud.agent.api.PvlanSetupCommand;
4748
import com.cloud.agent.api.ReadyCommand;
4849
import com.cloud.agent.api.SetupCommand;
4950
import com.cloud.agent.api.ShutdownCommand;
@@ -109,7 +110,9 @@ public int compare(Object o1, Object o2) {
109110
protected AgentManagerImpl _agentMgr;
110111

111112
public final static String[] s_commandsAllowedInMaintenanceMode =
112-
new String[] { MaintainCommand.class.toString(), MigrateCommand.class.toString(), StopCommand.class.toString(), CheckVirtualMachineCommand.class.toString(), PingTestCommand.class.toString(), CheckHealthCommand.class.toString(), ReadyCommand.class.toString(), ShutdownCommand.class.toString(), SetupCommand.class.toString(), ClusterSyncCommand.class.toString(), CleanupNetworkRulesCmd.class.toString(), CheckNetworkCommand.class.toString() };
113+
new String[] { MaintainCommand.class.toString(), MigrateCommand.class.toString(), StopCommand.class.toString(), CheckVirtualMachineCommand.class.toString(), PingTestCommand.class.toString(),
114+
CheckHealthCommand.class.toString(), ReadyCommand.class.toString(), ShutdownCommand.class.toString(), SetupCommand.class.toString(), ClusterSyncCommand.class.toString(),
115+
CleanupNetworkRulesCmd.class.toString(), CheckNetworkCommand.class.toString(), PvlanSetupCommand.class.toString() };
113116
protected final static String[] s_commandsNotAllowedInConnectingMode =
114117
new String[] { StartCommand.class.toString(), CreateCommand.class.toString() };
115118
static {

0 commit comments

Comments
 (0)