response.setMgmtIpAddress(vsmDeviceVO.getipaddr());
return response;
}
public CiscoNexusVSMResponse createCiscoNexusVSMDetailedResponse(CiscoNexusVSMDevice vsmDeviceVO) {
CiscoNexusVSMResponse response = new CiscoNexusVSMResponse();
response.setId(vsmDeviceVO.getUuid());
response.setDeviceName(vsmDeviceVO.getvsmName());
response.setDeviceState(vsmDeviceVO.getvsmDeviceState().toString());
response.setMgmtIpAddress(vsmDeviceVO.getipaddr());
// The following values can be null, so check for that.
if(vsmDeviceVO.getvsmConfigMode() != null)
response.setVSMConfigMode(vsmDeviceVO.getvsmConfigMode().toString());
if(vsmDeviceVO.getvsmConfigState() != null)
response.setVSMConfigState(vsmDeviceVO.getvsmConfigState().toString());
if(vsmDeviceVO.getvsmDeviceState() != null)
response.setVSMDeviceState(vsmDeviceVO.getvsmDeviceState().toString());
response.setVSMCtrlVlanId(vsmDeviceVO.getManagementVlan());
response.setVSMPktVlanId(vsmDeviceVO.getPacketVlan());
response.setVSMStorageVlanId(vsmDeviceVO.getStorageVlan());
return response;
}