Search in sources :

Example 1 with NetworkSystemRestRep

use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.

the class SanSwitches method itemDetails.

public static void itemDetails(String id) {
    NetworkSystemRestRep networkSystem = NetworkSystemUtils.getNetworkSystem(id);
    render(networkSystem);
}
Also used : NetworkSystemRestRep(com.emc.storageos.model.network.NetworkSystemRestRep)

Example 2 with NetworkSystemRestRep

use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.

the class SanSwitches method edit.

@FlashException("list")
public static void edit(String id) {
    NetworkSystemRestRep networkSystem = NetworkSystemUtils.getNetworkSystem(id);
    if (networkSystem == null) {
        flash.error(MessagesUtils.get(UNKNOWN, id));
        list();
    }
    edit(new SanSwitchForm(networkSystem));
}
Also used : NetworkSystemRestRep(com.emc.storageos.model.network.NetworkSystemRestRep) FlashException(controllers.util.FlashException)

Example 3 with NetworkSystemRestRep

use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.

the class NetworkMapper method map.

public static NetworkSystemRestRep map(NetworkSystem from) {
    if (from == null) {
        return null;
    }
    NetworkSystemRestRep to = new NetworkSystemRestRep();
    mapDiscoveredSystemObjectFields(from, to);
    to.setSerialNumber(from.getSerialNumber());
    to.setIpAddress(from.getIpAddress());
    to.setSecondaryIP(from.getSecondaryIP());
    to.setPortNumber(from.getPortNumber());
    to.setUsername(from.getUsername());
    // CD - This was present in the old model but was XmlTransient
    // to.setPassword(from.setPassword());
    to.setSmisProviderIP(from.getSmisProviderIP());
    to.setSmisPortNumber(from.getSmisPortNumber());
    to.setSmisUserName(from.getSmisUserName());
    // to.setSmisPassword();
    to.setSmisUseSSL(from.getSmisUseSSL());
    to.setVersion(from.getVersion());
    to.setUptime(from.getUptime());
    return to;
}
Also used : NetworkSystemRestRep(com.emc.storageos.model.network.NetworkSystemRestRep)

Aggregations

NetworkSystemRestRep (com.emc.storageos.model.network.NetworkSystemRestRep)3 FlashException (controllers.util.FlashException)1