CLOUDSTACK-9740 : Search for secondary IP of NIC that is attached to an instance is not working#2126
Conversation
|
@ustcweizhou @SudharmaJain : Old PR #1909 got automatically closed while pushing updated changes to the PR. So I have created this new PR, after incorporating all the comments which both of you have provided on the old PR. Please review this PR |
|
LGTM for the code |
| resp.setObjectName("nic"); | ||
| resList.add(resp); | ||
| if (this.getKeyword() != null && !this.getKeyword().isEmpty() && this.getNicId() != null) { | ||
| List<? extends NicSecondaryIp> results = _networkService.listSecondaryNics(this); |
There was a problem hiding this comment.
Change the method name listSecondaryNics. Here method is not listing the secondary nics it is listing nic secondary ips. The method name some thing like listVmNicSecondaryIps
There was a problem hiding this comment.
@jayapalu : Will change the name of method as per your suggestion.
…an instance is not working
|
tag:This is Ready to Merge |
|
@niteshsarda BVT results are required |
|
tag:This is Ready to Merge |
|
@niteshsarda There are too many failed tests. Can you run again to confirm it's not a real failure? |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
|
@karuturi : 2 Test Cases which are failing are not related to my change. So can you please merge this code ? |


Search for secondary IP of NIC that is attached to an instance is not working.
If instance has more than one secondary IP assigned and administrator attempts to search that list, all IPs are displayed instead of being filtered by the search string.
in web UI:
Dashboard -> Instances -> -> NICs -> ”View Secondary IPs” -> Search for a IP, but the search returns all the IPs in the list
Screenshot before applying fix :
Screenshot after applying fix :