mirror of https://github.com/apache/cloudstack.git
CS-15691 : network objec might be deleted by other host
This commit is contained in:
parent
97feeaad6a
commit
cedf128ae4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue