Filter dedicated and non-dedicated VLAN in API listPublicIPAddresses#5533
Filter dedicated and non-dedicated VLAN in API listPublicIPAddresses#5533GutoVeronezi wants to merge 3 commits into
Conversation
|
@GutoVeronezi |
|
@weizhouapache #5464 seems to refer only in duplicated IPs, not in VLAN filtering. |
@GutoVeronezi |
|
@weizhouapache @GutoVeronezi if i remember properly, a domain admin or user can list only the public ip belonging to his/her account. only root admin can list all ip. are you assigning as root admin? |
|
@GutoVeronezi |
To reproduce the issue:
|
@GutoVeronezi |
weizhouapache
left a comment
There was a problem hiding this comment.
please check with latest main branch, and verify the fix if the issue can be reproduced.
please fix the jenkins/travis failures.
|
@weizhouapache I built and tested PR #5464 and it solved this problem. I'll close this PR, thanks for the tip. |
Description
In ACS, when we are listing public IPs to allocate, to a VPC, for instance, all IPs are listed, even the ones dedicated to an account different from the one that is calling the API. If we tried to allocate an IP dedicated to another account, ACS would return an error. Therefore, this PR intends to filter dedicated and non-dedicated VLANs in API
listPublicIPAddresses.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I added unit tests and tested locally, in a test lab.
AandB;Aand sometoB`;Awould see non-dedicated andB's IPs andBwould see non-dedicated andA's IPs. After this change,Aonly can see its IPs and non-dedicated andBonly see its IPs as well.