cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cloudstack] kioie opened a new pull request #3292: Allow updatePod API requests to update startIP and endIP
Date Sat, 28 Sep 2019 00:01:39 GMT
kioie opened a new pull request #3292: Allow updatePod API requests to update startIP and endIP
URL: https://github.com/apache/cloudstack/pull/3292
 
 
   Signed-off-by: kioie <kioie@gmail.com>
   
   ## Description
   Fixes #2797
   <!--- Describe your changes in detail -->
   
   <!-- 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: # -->
   
   ## 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)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] 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)
   
   ## Screenshots (if appropriate):
   
   ## 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. -->
   List the pods
   ```
   (local) mycloudmonkey> list pods
   {
     "count": 1,
     "pod": [
       {
         "allocationstate": "Enabled",
         "endip": [
           "172.16.15.100"
         ],
         "forsystemvms": [
           "0"
         ],
         "gateway": "172.16.15.1",
         "id": "40adabdc-c075-434d-ad96-4ac09a57174a",
         "name": "POD0",
         "netmask": "255.255.255.0",
         "startip": [
           "172.16.15.3"
         ],
         "vlanid": [
           "vlan://untagged"
         ],
         "zoneid": "2c4b017c-a7cf-448d-9846-eddb19868369",
         "zonename": "Sandbox-simulator"
       }
     ]
   }
   ```
   
   Update pod endIP
   
   ```
   (local) mycloudmonkey> update pod id=40adabdc-c075-434d-ad96-4ac09a57174a endip=172.16.15.200
   {
     "pod": {
       "allocationstate": "Enabled",
       "endip": [
         "172.16.15.200"
       ],
       "forsystemvms": [
         "0"
       ],
       "gateway": "172.16.15.1",
       "id": "40adabdc-c075-434d-ad96-4ac09a57174a",
       "name": "POD0",
       "netmask": "255.255.255.0",
       "startip": [
         "172.16.15.3"
       ],
       "vlanid": [
         "vlan://untagged"
       ],
       "zoneid": "2c4b017c-a7cf-448d-9846-eddb19868369",
       "zonename": "Sandbox-simulator"
     }
   }
   ```
   
   Update pod startIP
   
   ```
   (local) mycloudmonkey> update pod id=40adabdc-c075-434d-ad96-4ac09a57174a startip=172.16.15.2
   {
     "pod": {
       "allocationstate": "Enabled",
       "endip": [
         "172.16.15.200"
       ],
       "forsystemvms": [
         "0"
       ],
       "gateway": "172.16.15.1",
       "id": "40adabdc-c075-434d-ad96-4ac09a57174a",
       "name": "POD0",
       "netmask": "255.255.255.0",
       "startip": [
         "172.16.15.2"
       ],
       "vlanid": [
         "vlan://untagged"
       ],
       "zoneid": "2c4b017c-a7cf-448d-9846-eddb19868369",
       "zonename": "Sandbox-simulator"
     }
   }
   ```
   Updates in the DB
   ![Screen Shot 2019-04-24 at 12 19 30 AM](https://user-images.githubusercontent.com/20902920/56616747-c7e56200-6626-11e9-824d-439be8f62640.png)
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message