No need to keep the GET /guests/{userid}/nic, its functions are covered by the GET /guests/nics

Bug #1771244 reported by dyyang@cn.ibm.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zVM Cloud Connector
Fix Committed
Low
Ya Lian Pan

Bug Description

Functions duplicate in the two APIs and confusing:

 GET /guests/{userid}/nic:

get the nic and vswitch pair info from database.

GET /guests/nics:

get all info from database, including userid, nic number, vswitch, nic id and comments.
This API support to filter with a userid specified.

So we need to consider remove the GET /guests/{userid}/nic API which corresponds to guest_get_nic_vswitch_info(self, userid)

Changed in python-zvm-sdk:
status: New → Confirmed
description: updated
Revision history for this message
jichenjc (jichenjc) wrote :

I'd argue because sometimes you don't need all info and only want one NIC info, then better to keep both for performance reason?

jichenjc (jichenjc)
Changed in python-zvm-sdk:
importance: Undecided → Low
Revision history for this message
Ya Lian Pan (yalian) wrote :

It is not an performance issue, you can use GET /guests/nics?userid=XXX to do the same work as
GET /guests/{XXX}/nic

Revision history for this message
Ya Lian Pan (yalian) wrote :
Ya Lian Pan (yalian)
Changed in python-zvm-sdk:
assignee: nobody → Ya Lian Pan (yalian)
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.