CS-15691 : network objec might be deleted by other host

This commit is contained in:
anthony 2012-07-25 11:19:32 -07:00
parent 97feeaad6a
commit cedf128ae4
1 changed files with 6 additions and 2 deletions

View File

@ -3540,8 +3540,12 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
// Disable any VLAN networks that aren't used
// anymore
for (Network network : networks) {
if (network.getNameLabel(conn).startsWith("VLAN")) {
disableVlanNetwork(conn, network);
try {
if (network.getNameLabel(conn).startsWith("VLAN")) {
disableVlanNetwork(conn, network);
}
} catch (Exception e) {
// network might be destroyed by other host
}
}
return new StopAnswer(cmd, "Stop VM " + vmName + " Succeed", 0, true);