summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-11 10:35:54 -0400
committerGitHub <noreply@github.com>2022-04-11 10:35:54 -0400
commit86616317bc31c5a2890bd3cc8aec18c59ba2a257 (patch)
treeb455edaacde28d5680f38ea2f4ca70b36152921e /cmd/podman/common
parent1d01815c107c91f6cfe98446d334c94a97d11080 (diff)
parent784a13f57752caee545e2e22a8f35665befbd8bd (diff)
downloadpodman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.tar.gz
podman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.tar.bz2
podman-86616317bc31c5a2890bd3cc8aec18c59ba2a257.zip
Merge pull request #13701 from Luap99/ipam-none
network create: add support for ipam-driver none
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/completion.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index 9ebdcda2b..1c0065006 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -1115,6 +1115,13 @@ func AutocompleteNetworkDriver(cmd *cobra.Command, args []string, toComplete str
return drivers, cobra.ShellCompDirectiveNoFileComp
}
+// AutocompleteNetworkIPAMDriver - Autocomplete network ipam driver option.
+// -> "bridge", "macvlan"
+func AutocompleteNetworkIPAMDriver(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
+ drivers := []string{types.HostLocalIPAMDriver, types.DHCPIPAMDriver, types.NoneIPAMDriver}
+ return drivers, cobra.ShellCompDirectiveNoFileComp
+}
+
// AutocompletePodShareNamespace - Autocomplete pod create --share flag option.
// -> "ipc", "net", "pid", "user", "uts", "cgroup", "none"
func AutocompletePodShareNamespace(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {