You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GUI calls listPublicIPAddresses as follows and does not filter for current network when using the "change IP address" function:
command=listPublicIpAddresses&response=json&allocatedonly=false&networkid=01891a96-1a86-4401-948a-ed434c5be1ba&forvirtualnetwork=false
As a result all IP addresses from both shared networks are returned, allowing the end user to select an IP address which can not be assigned to the NIC in question
Checking http://cloudstack.apache.org/api/apidocs-4.11/apis/listPublicIpAddresses.html it seems the parameter "networkid" is not actually implemented, however this plays out as follows:
** Documentation specifies this as parameter "associatednetworkid"
** CloudMonkey etc. will return "associatednetworkid" when querying input parameters
** However the API will not actually filter for "networkid" and using "associatednetworkid" returns 0 nil records, hence matching does not work
STEPS TO REPRODUCE
Create two shared networks and make sure they are in "setup" state
Create VM with NIC assigned to shared net 1
Try to use the "change IP" function in the GUI
Observe this returns a list of ALL shared IP addresses for both shared networks
For completeness sake try to assign an IP address on the second shared network and observe this failing whether VM is running or not
EXPECTED RESULTS
GUI should return only IP addresses on current shared network
ACTUAL RESULTS
GUI returns list of IP addresses from both shared networks
The text was updated successfully, but these errors were encountered:
DagSonsteboSB
changed the title
GUI listPublicIPAddresses return not filtered for current network
listPublicIPAddresses return not filtered for current network
Apr 25, 2019
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
command=listPublicIpAddresses&response=json&allocatedonly=false&networkid=01891a96-1a86-4401-948a-ed434c5be1ba&forvirtualnetwork=false
** Documentation specifies this as parameter "associatednetworkid"
** CloudMonkey etc. will return "associatednetworkid" when querying input parameters
** However the API will not actually filter for "networkid" and using "associatednetworkid" returns 0 nil records, hence matching does not work
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: