Source:
<code>public void execute() throws ResourceUnavailableException, ResourceAllocationException, ConcurrentOperationException, InsufficientCapacityException { try { if (this.getKeyword() != null && !this.getKeyword().isEmpty() && this.getNicId() != null) { <START> List<? extends NicSecondaryIp> results = _networkService.listSecondaryNics(this); <END> ListResponse<NicSecondaryIpResponse> response = new ListResponse<NicSecondaryIpResponse>(); List<NicSecondaryIpResponse> resList = new ArrayList<NicSecondaryIpResponse>(); NicSecondaryIpResponse res = new NicSecondaryIpResponse(); List<NicSecondaryIpResponse> res_List = new ArrayList<NicSecondaryIpResponse>(); if (results != null) { for (NicSecondaryIp r : results) { NicSecondaryIpResponse ipRes = _responseGenerator.createSecondaryIPToNicResponse(r); resList.add(ipRes); res.setSecondaryIpsList(resList); res.setObjectName("nic"); } res_List.add(res); response.setResponses(res_List); } response.setResponses(res_List); response.setResponseName(getCommandName()); this.setResponseObject(response); } else { List<? extends Nic> results = _networkService.listNics(this); ListResponse<NicResponse> response = new ListResponse<NicResponse>(); List<NicResponse> resList = null; if (results != null) { resList = new ArrayList<NicResponse>(results.size()); for (Nic r : results) { NicResponse resp = _responseGenerator.createNicResponse(r); resp.setObjectName("nic"); resList.add(resp); } response.setResponses(resList); } response.setResponses(resList); response.setResponseName(getCommandName()); this.setResponseObject(response); } } catch (Exception e) { s_logger.warn("Failed to list secondary ip address per nic "); throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, e.getMessage()); } }</code><technical_language>Change method name listSecondaryNics. method is listing secondary nics is listing nic secondary ips. method name some listVmNicSecondaryIps</technical_language>

Target:
public void execute() throws ResourceUnavailableException, ResourceAllocationException, ConcurrentOperationException, InsufficientCapacityException { try { if (this.getKeyword() != null && !this.getKeyword().isEmpty() && this.getNicId() != null) { List<? extends NicSecondaryIp> results = _networkService.listVmNicSecondaryIps(this); ListResponse<NicSecondaryIpResponse> response = new ListResponse<NicSecondaryIpResponse>(); List<NicSecondaryIpResponse> resList = new ArrayList<NicSecondaryIpResponse>(); NicSecondaryIpResponse res = new NicSecondaryIpResponse(); List<NicSecondaryIpResponse> res_List = new ArrayList<NicSecondaryIpResponse>(); if (results != null) { for (NicSecondaryIp r : results) { NicSecondaryIpResponse ipRes = _responseGenerator.createSecondaryIPToNicResponse(r); resList.add(ipRes); res.setSecondaryIpsList(resList); res.setObjectName("nic"); } res_List.add(res); response.setResponses(res_List); } response.setResponses(res_List); response.setResponseName(getCommandName()); this.setResponseObject(response); } else { List<? extends Nic> results = _networkService.listNics(this); ListResponse<NicResponse> response = new ListResponse<NicResponse>(); List<NicResponse> resList = null; if (results != null) { resList = new ArrayList<NicResponse>(results.size()); for (Nic r : results) { NicResponse resp = _responseGenerator.createNicResponse(r); resp.setObjectName("nic"); resList.add(resp); } response.setResponses(resList); } response.setResponses(resList); response.setResponseName(getCommandName()); this.setResponseObject(response); } } catch (Exception e) { s_logger.warn("Failed to list secondary ip address per nic "); throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, e.getMessage()); } }