Program: 105467
Project: 105467
Buggy source:
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  boolean success=super.configure(name,params);
  if (!success) {
    return false;
  }
  _storage=new JavaStorageLayer();
  _storage.configure("String_Node_Str",params);
  String domrScriptsDir=(String)params.get("String_Node_Str");
  if (domrScriptsDir == null) {
    domrScriptsDir=getDefaultDomrScriptsDir();
  }
  String kvmScriptsDir=(String)params.get("String_Node_Str");
  if (kvmScriptsDir == null) {
    kvmScriptsDir=getDefaultKvmScriptsDir();
  }
  String networkScriptsDir=(String)params.get("String_Node_Str");
  if (networkScriptsDir == null) {
    networkScriptsDir=getDefaultNetworkScriptsDir();
  }
  String storageScriptsDir=(String)params.get("String_Node_Str");
  if (storageScriptsDir == null) {
    storageScriptsDir=getDefaultStorageScriptsDir();
  }
  String bridgeType=(String)params.get("String_Node_Str");
  if (bridgeType == null) {
    _bridgeType=BridgeType.NATIVE;
  }
 else {
    _bridgeType=BridgeType.valueOf(bridgeType.toUpperCase());
  }
  params.put("String_Node_Str",domrScriptsDir);
  _virtRouterResource=new VirtualRoutingResource(this);
  success=_virtRouterResource.configure(name,params);
  if (!success) {
    return false;
  }
  _host=(String)params.get("String_Node_Str");
  if (_host == null) {
    _host="String_Node_Str";
  }
  _dcId=(String)params.get("String_Node_Str");
  if (_dcId == null) {
    _dcId="String_Node_Str";
  }
  _pod=(String)params.get("String_Node_Str");
  if (_pod == null) {
    _pod="String_Node_Str";
  }
  _clusterId=(String)params.get("String_Node_Str");
  _modifyVlanPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_modifyVlanPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _versionstringpath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_versionstringpath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _patchViaSocketPath=Script.findScript(kvmScriptsDir + "String_Node_Str","String_Node_Str");
  if (_patchViaSocketPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _heartBeatPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_heartBeatPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createvmPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createvmPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _manageSnapshotPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_manageSnapshotPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _resizeVolumePath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_resizeVolumePath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createTmplPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createTmplPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _securityGroupPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_securityGroupPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsTunnelPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsTunnelPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _routerProxyPath=Script.findScript("String_Node_Str","String_Node_Str");
  if (_routerProxyPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsPvlanDhcpHostPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsPvlanDhcpHostPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsPvlanVmPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsPvlanVmPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  String value=(String)params.get("String_Node_Str");
  boolean isDeveloper=Boolean.parseBoolean(value);
  if (isDeveloper) {
    params.putAll(getDeveloperProperties());
  }
  _pool=(String)params.get("String_Node_Str");
  if (_pool == null) {
    _pool="String_Node_Str";
  }
  String instance=(String)params.get("String_Node_Str");
  _hypervisorType=HypervisorType.getType((String)params.get("String_Node_Str"));
  if (_hypervisorType == HypervisorType.None) {
    _hypervisorType=HypervisorType.KVM;
  }
  if (HypervisorType.LXC.equals(getHypervisorType())) {
    _setupCgroupPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
    if (_setupCgroupPath == null) {
      throw new ConfigurationException("String_Node_Str");
    }
    if (!checkCgroups()) {
      throw new ConfigurationException("String_Node_Str");
    }
  }
  _hypervisorURI=(String)params.get("String_Node_Str");
  if (_hypervisorURI == null) {
    _hypervisorURI=LibvirtConnection.getHypervisorURI(_hypervisorType.toString());
  }
  _networkDirectSourceMode=(String)params.get("String_Node_Str");
  _networkDirectDevice=(String)params.get("String_Node_Str");
  String startMac=(String)params.get("String_Node_Str");
  if (startMac == null) {
    startMac="String_Node_Str";
  }
  String startIp=(String)params.get("String_Node_Str");
  if (startIp == null) {
    startIp="String_Node_Str";
  }
  _pingTestPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_pingTestPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _linkLocalBridgeName=(String)params.get("String_Node_Str");
  if (_linkLocalBridgeName == null) {
    if (isDeveloper) {
      _linkLocalBridgeName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _linkLocalBridgeName="String_Node_Str";
    }
  }
  _publicBridgeName=(String)params.get("String_Node_Str");
  if (_publicBridgeName == null) {
    _publicBridgeName="String_Node_Str";
  }
  _privBridgeName=(String)params.get("String_Node_Str");
  if (_privBridgeName == null) {
    _privBridgeName="String_Node_Str";
  }
  _guestBridgeName=(String)params.get("String_Node_Str");
  if (_guestBridgeName == null) {
    _guestBridgeName=_privBridgeName;
  }
  _privNwName=(String)params.get("String_Node_Str");
  if (_privNwName == null) {
    if (isDeveloper) {
      _privNwName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _privNwName="String_Node_Str";
    }
  }
  _localStoragePath=(String)params.get("String_Node_Str");
  if (_localStoragePath == null) {
    _localStoragePath="String_Node_Str";
  }
  File storagePath=new File(_localStoragePath);
  _localStoragePath=storagePath.getAbsolutePath();
  _localStorageUUID=(String)params.get("String_Node_Str");
  if (_localStorageUUID == null) {
    _localStorageUUID=UUID.nameUUIDFromBytes(_localStoragePath.getBytes()).toString();
  }
  value=(String)params.get("String_Node_Str");
  _timeout=NumbersUtil.parseInt(value,30 * 60) * 1000;
  value=(String)params.get("String_Node_Str");
  _stopTimeout=NumbersUtil.parseInt(value,120) * 1000;
  value=(String)params.get("String_Node_Str");
  _cmdsTimeout=NumbersUtil.parseInt(value,7200) * 1000;
  value=(String)params.get("String_Node_Str");
  if (Boolean.parseBoolean(value)) {
    _noMemBalloon=true;
  }
  _videoHw=(String)params.get("String_Node_Str");
  value=(String)params.get("String_Node_Str");
  _videoRam=NumbersUtil.parseInt(value,0);
  value=(String)params.get("String_Node_Str");
  _dom0MinMem=NumbersUtil.parseInt(value,0) * 1024 * 1024;
  value=(String)params.get("String_Node_Str");
  if (Boolean.parseBoolean(value)) {
    _noKvmClock=true;
  }
 else   if (HypervisorType.LXC.equals(_hypervisorType) && (value == null)) {
    _noKvmClock=true;
  }
  LibvirtConnection.initialize(_hypervisorURI);
  Connect conn=null;
  try {
    conn=LibvirtConnection.getConnection();
    if (_bridgeType == BridgeType.OPENVSWITCH) {
      if (conn.getLibVirVersion() < (10 * 1000 + 0)) {
        throw new ConfigurationException("String_Node_Str" + conn.getLibVirVersion() + "String_Node_Str");
      }
    }
  }
 catch (  LibvirtException e) {
    throw new CloudRuntimeException(e.getMessage());
  }
  if (HypervisorType.KVM == _hypervisorType) {
    if (!IsHVMEnabled(conn)) {
      throw new ConfigurationException("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    }
  }
  _hypervisorPath=getHypervisorPath(conn);
  try {
    _hvVersion=conn.getVersion();
    _hvVersion=(_hvVersion % 1000000) / 1000;
    _hypervisorLibvirtVersion=conn.getLibVirVersion();
    _hypervisorQemuVersion=conn.getVersion();
  }
 catch (  LibvirtException e) {
    s_logger.trace("String_Node_Str",e);
  }
  _guestCpuMode=(String)params.get("String_Node_Str");
  if (_guestCpuMode != null) {
    _guestCpuModel=(String)params.get("String_Node_Str");
    if (_hypervisorLibvirtVersion < (9 * 1000 + 10)) {
      s_logger.warn("String_Node_Str" + prettyVersion(_hypervisorLibvirtVersion) + "String_Node_Str");
      _guestCpuMode="String_Node_Str";
      _guestCpuModel="String_Node_Str";
    }
    params.put("String_Node_Str",_guestCpuMode);
    params.put("String_Node_Str",_guestCpuModel);
  }
  String[] info=NetUtils.getNetworkParams(_privateNic);
  _monitor=new KVMHAMonitor(null,info[0],_heartBeatPath);
  Thread ha=new Thread(_monitor);
  ha.start();
  _storagePoolMgr=new KVMStoragePoolManager(_storage,_monitor);
  _sysvmISOPath=(String)params.get("String_Node_Str");
  if (_sysvmISOPath == null) {
    String[] isoPaths={"String_Node_Str"};
    for (    String isoPath : isoPaths) {
      if (_storage.exists(isoPath)) {
        _sysvmISOPath=isoPath;
        break;
      }
    }
    if (_sysvmISOPath == null) {
      s_logger.debug("String_Node_Str");
    }
  }
switch (_bridgeType) {
case OPENVSWITCH:
    getOvsPifs();
  break;
case NATIVE:
default :
getPifs();
break;
}
if (_pifs.get("String_Node_Str") == null) {
s_logger.debug("String_Node_Str");
throw new ConfigurationException("String_Node_Str");
}
if (_pifs.get("String_Node_Str") == null) {
s_logger.debug("String_Node_Str");
throw new ConfigurationException("String_Node_Str");
}
s_logger.debug("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str"+ _privBridgeName+ "String_Node_Str"+ _pifs.get("String_Node_Str")+ "String_Node_Str"+ _publicBridgeName);
_canBridgeFirewall=can_bridge_firewall(_pifs.get("String_Node_Str"));
_localGateway=Script.runSimpleBashScript("String_Node_Str");
if (_localGateway == null) {
s_logger.debug("String_Node_Str");
}
_mountPoint=(String)params.get("String_Node_Str");
if (_mountPoint == null) {
_mountPoint="String_Node_Str";
}
value=(String)params.get("String_Node_Str");
_migrateDowntime=NumbersUtil.parseInt(value,-1);
value=(String)params.get("String_Node_Str");
_migratePauseAfter=NumbersUtil.parseInt(value,-1);
value=(String)params.get("String_Node_Str");
_migrateSpeed=NumbersUtil.parseInt(value,-1);
if (_migrateSpeed == -1) {
_migrateSpeed=0;
String speed=Script.runSimpleBashScript("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str");
if (speed != null) {
String[] tokens=speed.split("String_Node_Str");
if (tokens.length == 2) {
try {
  _migrateSpeed=Integer.parseInt(tokens[0]);
}
 catch (NumberFormatException e) {
  s_logger.trace("String_Node_Str",e);
}
s_logger.debug("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str"+ String.valueOf(_migrateSpeed));
}
}
params.put("String_Node_Str",String.valueOf(_migrateSpeed));
}
Map<String,String> bridges=new HashMap<String,String>();
bridges.put("String_Node_Str",_linkLocalBridgeName);
bridges.put("String_Node_Str",_publicBridgeName);
bridges.put("String_Node_Str",_privBridgeName);
bridges.put("String_Node_Str",_guestBridgeName);
params.put("String_Node_Str",bridges);
params.put("String_Node_Str",_pifs);
params.put("String_Node_Str",this);
params.put("String_Node_Str",_hypervisorLibvirtVersion);
configureVifDrivers(params);
KVMStorageProcessor storageProcessor=new KVMStorageProcessor(_storagePoolMgr,this);
storageProcessor.configure(name,params);
storageHandler=new StorageSubsystemCommandHandlerBase(storageProcessor);
String unameKernelVersion=Script.runSimpleBashScript("String_Node_Str");
String[] kernelVersions=unameKernelVersion.split("String_Node_Str");
_kernelVersion=Integer.parseInt(kernelVersions[0]) * 1000 * 1000 + (long)Integer.parseInt(kernelVersions[1]) * 1000 + Integer.parseInt(kernelVersions[2]);
getOsVersion();
return true;
}

Fixed version (ground truth):
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  boolean success=super.configure(name,params);
  if (!success) {
    return false;
  }
  _storage=new JavaStorageLayer();
  _storage.configure("String_Node_Str",params);
  String domrScriptsDir=(String)params.get("String_Node_Str");
  if (domrScriptsDir == null) {
    domrScriptsDir=getDefaultDomrScriptsDir();
  }
  String kvmScriptsDir=(String)params.get("String_Node_Str");
  if (kvmScriptsDir == null) {
    kvmScriptsDir=getDefaultKvmScriptsDir();
  }
  String networkScriptsDir=(String)params.get("String_Node_Str");
  if (networkScriptsDir == null) {
    networkScriptsDir=getDefaultNetworkScriptsDir();
  }
  String storageScriptsDir=(String)params.get("String_Node_Str");
  if (storageScriptsDir == null) {
    storageScriptsDir=getDefaultStorageScriptsDir();
  }
  String bridgeType=(String)params.get("String_Node_Str");
  if (bridgeType == null) {
    _bridgeType=BridgeType.NATIVE;
  }
 else {
    _bridgeType=BridgeType.valueOf(bridgeType.toUpperCase());
  }
  params.put("String_Node_Str",domrScriptsDir);
  _virtRouterResource=new VirtualRoutingResource(this);
  success=_virtRouterResource.configure(name,params);
  if (!success) {
    return false;
  }
  _host=(String)params.get("String_Node_Str");
  if (_host == null) {
    _host="String_Node_Str";
  }
  _dcId=(String)params.get("String_Node_Str");
  if (_dcId == null) {
    _dcId="String_Node_Str";
  }
  _pod=(String)params.get("String_Node_Str");
  if (_pod == null) {
    _pod="String_Node_Str";
  }
  _clusterId=(String)params.get("String_Node_Str");
  _modifyVlanPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_modifyVlanPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _versionstringpath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_versionstringpath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _patchViaSocketPath=Script.findScript(kvmScriptsDir + "String_Node_Str","String_Node_Str");
  if (_patchViaSocketPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _heartBeatPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_heartBeatPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createvmPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createvmPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _manageSnapshotPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_manageSnapshotPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _resizeVolumePath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_resizeVolumePath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createTmplPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createTmplPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _securityGroupPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_securityGroupPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsTunnelPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsTunnelPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _routerProxyPath=Script.findScript("String_Node_Str","String_Node_Str");
  if (_routerProxyPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsPvlanDhcpHostPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsPvlanDhcpHostPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _ovsPvlanVmPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_ovsPvlanVmPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  String value=(String)params.get("String_Node_Str");
  boolean isDeveloper=Boolean.parseBoolean(value);
  if (isDeveloper) {
    params.putAll(getDeveloperProperties());
  }
  _pool=(String)params.get("String_Node_Str");
  if (_pool == null) {
    _pool="String_Node_Str";
  }
  String instance=(String)params.get("String_Node_Str");
  _hypervisorType=HypervisorType.getType((String)params.get("String_Node_Str"));
  if (_hypervisorType == HypervisorType.None) {
    _hypervisorType=HypervisorType.KVM;
  }
  if (HypervisorType.LXC.equals(getHypervisorType())) {
    _setupCgroupPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
    if (_setupCgroupPath == null) {
      throw new ConfigurationException("String_Node_Str");
    }
    if (!checkCgroups()) {
      throw new ConfigurationException("String_Node_Str");
    }
  }
  _hypervisorURI=(String)params.get("String_Node_Str");
  if (_hypervisorURI == null) {
    _hypervisorURI=LibvirtConnection.getHypervisorURI(_hypervisorType.toString());
  }
  _networkDirectSourceMode=(String)params.get("String_Node_Str");
  _networkDirectDevice=(String)params.get("String_Node_Str");
  String startMac=(String)params.get("String_Node_Str");
  if (startMac == null) {
    startMac="String_Node_Str";
  }
  String startIp=(String)params.get("String_Node_Str");
  if (startIp == null) {
    startIp="String_Node_Str";
  }
  _pingTestPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_pingTestPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _linkLocalBridgeName=(String)params.get("String_Node_Str");
  if (_linkLocalBridgeName == null) {
    if (isDeveloper) {
      _linkLocalBridgeName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _linkLocalBridgeName="String_Node_Str";
    }
  }
  _publicBridgeName=(String)params.get("String_Node_Str");
  if (_publicBridgeName == null) {
    _publicBridgeName="String_Node_Str";
  }
  _privBridgeName=(String)params.get("String_Node_Str");
  if (_privBridgeName == null) {
    _privBridgeName="String_Node_Str";
  }
  _guestBridgeName=(String)params.get("String_Node_Str");
  if (_guestBridgeName == null) {
    _guestBridgeName=_privBridgeName;
  }
  _privNwName=(String)params.get("String_Node_Str");
  if (_privNwName == null) {
    if (isDeveloper) {
      _privNwName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _privNwName="String_Node_Str";
    }
  }
  _localStoragePath=(String)params.get("String_Node_Str");
  if (_localStoragePath == null) {
    _localStoragePath="String_Node_Str";
  }
  File storagePath=new File(_localStoragePath);
  _localStoragePath=storagePath.getAbsolutePath();
  _localStorageUUID=(String)params.get("String_Node_Str");
  if (_localStorageUUID == null) {
    _localStorageUUID=UUID.nameUUIDFromBytes(_localStoragePath.getBytes()).toString();
  }
  value=(String)params.get("String_Node_Str");
  _timeout=NumbersUtil.parseInt(value,30 * 60) * 1000;
  value=(String)params.get("String_Node_Str");
  _stopTimeout=NumbersUtil.parseInt(value,120) * 1000;
  value=(String)params.get("String_Node_Str");
  _cmdsTimeout=NumbersUtil.parseInt(value,7200) * 1000;
  value=(String)params.get("String_Node_Str");
  if (Boolean.parseBoolean(value)) {
    _noMemBalloon=true;
  }
  _videoHw=(String)params.get("String_Node_Str");
  value=(String)params.get("String_Node_Str");
  _videoRam=NumbersUtil.parseInt(value,0);
  value=(String)params.get("String_Node_Str");
  _dom0MinMem=NumbersUtil.parseInt(value,0) * 1024 * 1024;
  value=(String)params.get("String_Node_Str");
  if (Boolean.parseBoolean(value)) {
    _noKvmClock=true;
  }
 else   if (HypervisorType.LXC.equals(_hypervisorType) && (value == null)) {
    _noKvmClock=true;
  }
  LibvirtConnection.initialize(_hypervisorURI);
  Connect conn=null;
  try {
    conn=LibvirtConnection.getConnection();
    if (_bridgeType == BridgeType.OPENVSWITCH) {
      if (conn.getLibVirVersion() < (10 * 1000 + 0)) {
        throw new ConfigurationException("String_Node_Str" + conn.getLibVirVersion() + "String_Node_Str");
      }
    }
  }
 catch (  LibvirtException e) {
    throw new CloudRuntimeException(e.getMessage());
  }
  if (HypervisorType.KVM == _hypervisorType) {
    if (!IsHVMEnabled(conn)) {
      throw new ConfigurationException("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    }
  }
  _hypervisorPath=getHypervisorPath(conn);
  try {
    _hvVersion=conn.getVersion();
    _hvVersion=(_hvVersion % 1000000) / 1000;
    _hypervisorLibvirtVersion=conn.getLibVirVersion();
    _hypervisorQemuVersion=conn.getVersion();
  }
 catch (  LibvirtException e) {
    s_logger.trace("String_Node_Str",e);
  }
  _guestCpuMode=(String)params.get("String_Node_Str");
  if (_guestCpuMode != null) {
    _guestCpuModel=(String)params.get("String_Node_Str");
    if (_hypervisorLibvirtVersion < (9 * 1000 + 10)) {
      s_logger.warn("String_Node_Str" + prettyVersion(_hypervisorLibvirtVersion) + "String_Node_Str");
      _guestCpuMode="String_Node_Str";
      _guestCpuModel="String_Node_Str";
    }
    params.put("String_Node_Str",_guestCpuMode);
    params.put("String_Node_Str",_guestCpuModel);
  }
  String[] info=NetUtils.getNetworkParams(_privateNic);
  _monitor=new KVMHAMonitor(null,info[0],_heartBeatPath);
  Thread ha=new Thread(_monitor);
  ha.start();
  _storagePoolMgr=new KVMStoragePoolManager(_storage,_monitor);
  _sysvmISOPath=(String)params.get("String_Node_Str");
  if (_sysvmISOPath == null) {
    String[] isoPaths={"String_Node_Str"};
    for (    String isoPath : isoPaths) {
      if (_storage.exists(isoPath)) {
        _sysvmISOPath=isoPath;
        break;
      }
    }
    if (_sysvmISOPath == null) {
      s_logger.debug("String_Node_Str");
    }
  }
switch (_bridgeType) {
case OPENVSWITCH:
    getOvsPifs();
  break;
case NATIVE:
default :
getPifs();
break;
}
if (_pifs.get("String_Node_Str") == null) {
s_logger.debug("String_Node_Str");
throw new ConfigurationException("String_Node_Str");
}
if (_pifs.get("String_Node_Str") == null) {
s_logger.debug("String_Node_Str");
throw new ConfigurationException("String_Node_Str");
}
s_logger.debug("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str"+ _privBridgeName+ "String_Node_Str"+ _pifs.get("String_Node_Str")+ "String_Node_Str"+ _publicBridgeName);
_canBridgeFirewall=can_bridge_firewall(_pifs.get("String_Node_Str"));
_localGateway=Script.runSimpleBashScript("String_Node_Str");
if (_localGateway == null) {
s_logger.debug("String_Node_Str");
}
_mountPoint=(String)params.get("String_Node_Str");
if (_mountPoint == null) {
_mountPoint="String_Node_Str";
}
value=(String)params.get("String_Node_Str");
_migrateDowntime=NumbersUtil.parseInt(value,-1);
value=(String)params.get("String_Node_Str");
_migratePauseAfter=NumbersUtil.parseInt(value,-1);
value=(String)params.get("String_Node_Str");
_migrateSpeed=NumbersUtil.parseInt(value,-1);
if (_migrateSpeed == -1) {
_migrateSpeed=0;
String speed=Script.runSimpleBashScript("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str");
if (speed != null) {
String[] tokens=speed.split("String_Node_Str");
if (tokens.length == 2) {
try {
  _migrateSpeed=Integer.parseInt(tokens[0]);
}
 catch (NumberFormatException e) {
  s_logger.trace("String_Node_Str",e);
}
s_logger.debug("String_Node_Str" + _pifs.get("String_Node_Str") + "String_Node_Str"+ String.valueOf(_migrateSpeed));
}
}
params.put("String_Node_Str",String.valueOf(_migrateSpeed));
}
Map<String,String> bridges=new HashMap<String,String>();
bridges.put("String_Node_Str",_linkLocalBridgeName);
bridges.put("String_Node_Str",_publicBridgeName);
bridges.put("String_Node_Str",_privBridgeName);
bridges.put("String_Node_Str",_guestBridgeName);
params.put("String_Node_Str",bridges);
params.put("String_Node_Str",_pifs);
params.put("String_Node_Str",this);
params.put("String_Node_Str",_hypervisorLibvirtVersion);
configureVifDrivers(params);
KVMStorageProcessor storageProcessor=new KVMStorageProcessor(_storagePoolMgr,this);
storageProcessor.configure(name,params);
storageHandler=new StorageSubsystemCommandHandlerBase(storageProcessor);
String unameKernelVersion=Script.runSimpleBashScript("String_Node_Str");
String[] kernelVersions=unameKernelVersion.split("String_Node_Str");
_kernelVersion=Integer.parseInt(kernelVersions[0]) * 1000 * 1000 + (long)Integer.parseInt(kernelVersions[1]) * 1000 + Integer.parseInt(kernelVersions[2]);
return true;
}