use of com.emc.aix.model.AixVersion in project coprhd-controller by CoprHD.
the class GetAixVioVersionCommand method parseOutput.
@Override
public void parseOutput() {
String stdOut = getOutput().getStdout();
results = new AixVersion(stdOut);
}
use of com.emc.aix.model.AixVersion in project coprhd-controller by CoprHD.
the class GetAixVersionCommand method parseOutput.
@Override
public void parseOutput() {
String stdOut = getOutput().getStdout();
results = new AixVersion(stdOut);
}
use of com.emc.aix.model.AixVersion in project coprhd-controller by CoprHD.
the class AixHostDiscoveryAdapter method getVersion.
protected AixVersion getVersion(Host host) {
AixSystem cli = getCli(host);
AixVersion version = cli.getVersion();
if (version == null) {
error("Could not determine version of aix host %s", host.getLabel());
return new AixVersion("");
} else {
return version;
}
}
use of com.emc.aix.model.AixVersion in project coprhd-controller by CoprHD.
the class AixHostDiscoveryAdapter method discoverHost.
@Override
protected void discoverHost(Host host, HostStateChange changes) {
validateHost(host);
AixVersion version = getVersion(host);
host.setOsVersion(version.toString());
if (getVersionValidator().isValidAixVersion(version)) {
host.setCompatibilityStatus(CompatibilityStatus.COMPATIBLE.name());
save(host);
super.discoverHost(host, changes);
} else {
host.setCompatibilityStatus(CompatibilityStatus.INCOMPATIBLE.name());
save(host);
throw ComputeSystemControllerException.exceptions.incompatibleHostVersion(getSupportedType(), version.toString(), getVersionValidator().getAixMinimumVersion(false).toString());
}
}
use of com.emc.aix.model.AixVersion in project coprhd-controller by CoprHD.
the class AixVioDiscoveryAdapter method discoverHost.
@Override
protected void discoverHost(Host host, HostStateChange changes) {
validateHost(host);
AixVersion version = getVersion(host);
host.setOsVersion(version.toString());
if (getVersionValidator().isValidAixVioVersion(version)) {
host.setCompatibilityStatus(CompatibilityStatus.COMPATIBLE.name());
save(host);
super.discoverHost(host, changes);
} else {
host.setCompatibilityStatus(CompatibilityStatus.INCOMPATIBLE.name());
save(host);
throw ComputeSystemControllerException.exceptions.incompatibleHostVersion(getSupportedType(), version.toString(), getVersionValidator().getAixVioMinimumVersion(false).toString());
}
}
Aggregations