fix : ping command doesn't need to call syncNetworkGroups if security group is not enabled

This commit is contained in:
anthony 2012-06-25 18:47:51 -07:00
parent a539c6e824
commit 627ef76fe1
1 changed files with 3 additions and 3 deletions

View File

@ -100,6 +100,7 @@ import com.cloud.agent.api.ModifyStoragePoolAnswer;
import com.cloud.agent.api.ModifyStoragePoolCommand;
import com.cloud.agent.api.NetworkRulesSystemVmCommand;
import com.cloud.agent.api.PingCommand;
import com.cloud.agent.api.PingRoutingCommand;
import com.cloud.agent.api.PingRoutingWithNwGroupsCommand;
import com.cloud.agent.api.PingRoutingWithOvsCommand;
import com.cloud.agent.api.PingTestCommand;
@ -4087,10 +4088,9 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
}
Connection conn = getConnection();
/**if (!_canBridgeFirewall && !_isOvs) {
if (!_canBridgeFirewall && !_isOvs) {
return new PingRoutingCommand(getType(), id, null);
} else**/
if (_isOvs) {
} else if (_isOvs) {
List<Pair<String, Long>>ovsStates = ovsFullSyncStates();
return new PingRoutingWithOvsCommand(getType(), id, null, ovsStates);
}else {