sureshanaparti opened a new pull request #5424: URL: https://github.com/apache/cloudstack/pull/5424
### Description This PR updates the pod response, moved the parameters: startip, endip, vlanid, forsystemvms to ipranges (a new parameter to hold the list of IP range details). <!--- Describe your changes in DETAIL - And how has behaviour functionally changed. --> <!-- For new features, provide link to FS, dev ML discussion etc. --> <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. --> <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged --> <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" --> <!-- Fixes: # --> Fixes: #2735 <!--- ********************************************************************************* --> <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. --> <!--- PLEASE PUT AN 'X' in only **ONE** box --> <!--- ********************************************************************************* --> ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [x] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [x] Minor #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [x] Minor - [ ] Trivial ### Screenshots (if appropriate): <img width="641" alt="Pod_IpRanges" src="https://user-images.githubusercontent.com/12028987/132653299-4441ce0c-0267-412b-85f3-0792a3b126c5.png"> ### How Has This Been Tested? <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> Manually tested the updated API response. Before changes: ``` (cloudcmk) > list pods { "count": 1, "pod": [ { "allocationstate": "Enabled", "endip": [ "10.0.36.60", "10.0.36.69" ], "forsystemvms": [ "0", "1" ], "gateway": "10.0.32.1", "hasannotations": false, "id": "43ffd982-8942-4c9a-88f3-002dc7f5d411", "name": "Pod1", "netmask": "255.255.240.0", "startip": [ "10.0.36.41", "10.0.36.67" ], "vlanid": [ "vlan://untagged", "vlan://untagged" ], "zoneid": "be8e7d3e-2f57-433d-9c93-208949e2ec1d", "zonename": "ref-trl-1773-k-M7-suresh-anaparti" } ] } ``` After changes: New parameter ipranges holds the list of ip ranges. Old parameters are deprecated. ``` (cloudcmk) > list pods { "count": 1, "pod": [ { "allocationstate": "Enabled", "endip": [ "10.0.36.60", "10.0.36.69" ], "forsystemvms": [ "0", "1" ], "gateway": "10.0.32.1", "hasannotations": false, "id": "43ffd982-8942-4c9a-88f3-002dc7f5d411", "ipranges": [ { "endip": "10.0.36.60", "forsystemvms": "0", "startip": "10.0.36.41", "vlanid": "vlan://untagged" }, { "endip": "10.0.36.69", "forsystemvms": "1", "startip": "10.0.36.67", "vlanid": "vlan://untagged" } ], "name": "Pod1", "netmask": "255.255.240.0", "startip": [ "10.0.36.41", "10.0.36.67" ], "vlanid": [ "vlan://untagged", "vlan://untagged" ], "zoneid": "be8e7d3e-2f57-433d-9c93-208949e2ec1d", "zonename": "ref-trl-1773-k-M7-suresh-anaparti" } ] } ``` <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document --> -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
