Search in sources :

Example 1 with AixVersion

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);
}
Also used : AixVersion(com.emc.aix.model.AixVersion)

Example 2 with AixVersion

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);
}
Also used : AixVersion(com.emc.aix.model.AixVersion)

Example 3 with AixVersion

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;
    }
}
Also used : AixSystem(com.emc.aix.AixSystem) AixVersion(com.emc.aix.model.AixVersion)

Example 4 with AixVersion

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());
    }
}
Also used : AixVersion(com.emc.aix.model.AixVersion)

Example 5 with AixVersion

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());
    }
}
Also used : AixVersion(com.emc.aix.model.AixVersion)

Aggregations

AixVersion (com.emc.aix.model.AixVersion)5 AixSystem (com.emc.aix.AixSystem)1