You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2024/12/05 15:55:30 UTC
(cloudstack-cloudmonkey) branch list-free-ips-associate-ips created (now 8df6018)
This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a change to branch list-free-ips-associate-ips
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
at 8df6018 List free IPs when performing associate IPAddress operation
This branch includes the following new commits:
new 8df6018 List free IPs when performing associate IPAddress operation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(cloudstack-cloudmonkey) 01/01: List free IPs when performing associate IPAddress operation
Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a commit to branch list-free-ips-associate-ips
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
commit 8df6018686359fa8af7106991bd364e99e3b906f
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Thu Dec 5 10:55:20 2024 -0500
List free IPs when performing associate IPAddress operation
---
cli/completer.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cli/completer.go b/cli/completer.go
index af8cab0..6d44405 100644
--- a/cli/completer.go
+++ b/cli/completer.go
@@ -200,6 +200,7 @@ func findAutocompleteAPI(arg *config.APIArg, apiFound *config.API, apiMap map[st
if arg.Type == "map" {
return nil
}
+ config.Debug("PEARL apiFound: ", apiFound)
var autocompleteAPI *config.API
argName := strings.Replace(arg.Name, "=", "", -1)
@@ -374,6 +375,7 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
}
autocompleteAPI := findAutocompleteAPI(arg, apiFound, apiMap)
+ config.Debug("api: ", autocompleteAPI)
if autocompleteAPI == nil {
return nil, 0
}
@@ -391,6 +393,8 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")
} else if apiFound.Name == "migrateSystemVm" {
autocompleteAPI.Name = "listSystemVms"
+ } else if apiFound.Name == "associateIpAddress" {
+ autocompleteAPIArgs = append(autocompleteAPIArgs, "state=Free")
}
spinner := t.Config.StartSpinner("fetching options, please wait...")