olivierlemasle opened a new pull request #4327:
URL: https://github.com/apache/cloudstack/pull/4327


   ## Description
   With this commit, listUsageRecords filters out usages made on IP addresses 
on networks with "Hide IP Address Usage". This was previously introduced in 
#3235.
   
   This requires a DB schema change, to introduce a flag `is_hidden` in table 
`cloud_usage.cloud_usage`.
   
   Cf. #4193
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## How Has This Been Tested?
   Multiple IP addresses have been created.
   - Those on shared networks without "Hide IP Address Usage" generate usages 
normally;
   - Those on shared networks with "Hide IP Address Usage" generate usages with 
flag `is_hidden`, and are not returned by the API.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to