mirror of https://github.com/apache/cloudstack.git
bugfix #4 vpc vr: Do NOT send Nic plug in/out command to Stopped/Stopping VR
This commit is contained in:
parent
655ed10655
commit
51f3756030
|
|
@ -214,7 +214,11 @@ public class AdvancedNetworkTopology extends BasicNetworkTopology {
|
|||
final boolean result = applyRules(network, router, typeString, isPodLevelException, podId, failWhenDisconnect, new RuleApplierWrapper<RuleApplier>(ipAssociationRules));
|
||||
|
||||
if (result) {
|
||||
_advancedVisitor.visit(nicPlugInOutRules);
|
||||
if (router.getState() == State.Stopped || router.getState() == State.Stopping) {
|
||||
s_logger.debug("Router " + router.getInstanceName() + " is in " + router.getState() + ", so not sending NicPlugInOutRules command to the backend");
|
||||
} else {
|
||||
_advancedVisitor.visit(nicPlugInOutRules);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
@ -241,4 +245,4 @@ public class AdvancedNetworkTopology extends BasicNetworkTopology {
|
|||
final boolean result = applyRules(network, router, typeString, isPodLevelException, podId, failWhenDisconnect, new RuleApplierWrapper<RuleApplier>(aclsRules));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue