You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/06/16 08:56:30 UTC

[GitHub] [cloudstack-primate] utchoang commented on a change in pull request #423: [FIX] Acquire public IP address does not give IP selection option

utchoang commented on a change in pull request #423:
URL: https://github.com/apache/cloudstack-primate/pull/423#discussion_r440694628



##########
File path: src/views/network/IpAddressesTab.vue
##########
@@ -181,6 +214,21 @@ export default {
         this.fetchLoading = false
       })
     },
+    fetchListPublicIpAddress () {
+      return new Promise((resolve, reject) => {
+        const params = {
+          zoneid: this.resource.zoneid,
+          domainid: this.resource.domainid,
+          account: this.resource.account,
+          forvirtualnetwork: true,
+          allocatedonly: false
+        }
+        api('listPublicIpAddresses', params).then(json => {
+          const listPublicIps = json.listpublicipaddressesresponse.publicipaddress || []
+          resolve(listPublicIps)

Review comment:
       @rhtyd I've fixed it.




----------------------------------------------------------------
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