CLOUDSTACK-5254: If VR is not upgraded, leave firewall rule in Active state. Rule will be applied when VR is upgraded

This commit is contained in:
Kishan Kavala 2013-12-24 16:34:03 +05:30
parent e659751a8a
commit 435aefec15

View File

@ -3795,6 +3795,14 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
s_logger.debug("Router " + router.getInstanceName() + " is stop pending, so not sending apply " + typeString + " commands to the backend");
continue;
}
if (!checkRouterVersion(router)){
//Rules will be applied after VR is upgraded
s_logger.debug("Router " + router.getInstanceName() + " requires upgrade, so not sending apply " +
typeString + " commands to the backend");
continue;
}
try {
result = applier.execute(network, router);
connectedRouters.add(router);