summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-11 16:37:13 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-11 17:30:27 +0100
commitfe90a45e0d914723b8c26e4e9497f414312b6af0 (patch)
tree883c28f2c52c6a2c6e01848efd7ca763216ddf2c /cmd/podman/common
parent8041d44c93ac46d330325cda849716f5ba2c40d9 (diff)
downloadpodman-fe90a45e0d914723b8c26e4e9497f414312b6af0.tar.gz
podman-fe90a45e0d914723b8c26e4e9497f414312b6af0.tar.bz2
podman-fe90a45e0d914723b8c26e4e9497f414312b6af0.zip
Add flag to overwrite network backend from config
To make testing easier we can overwrite the network backend with the global `--network-backend` option. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
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 ea453a331..4cb29383a 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -1163,6 +1163,13 @@ func AutocompleteEventBackend(cmd *cobra.Command, args []string, toComplete stri
return types, cobra.ShellCompDirectiveNoFileComp
}
+// AutocompleteNetworkBackend - Autocomplete network backend options.
+// -> "cni", "netavark"
+func AutocompleteNetworkBackend(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
+ types := []string{"cni", "netavark"}
+ return types, cobra.ShellCompDirectiveNoFileComp
+}
+
// AutocompleteLogLevel - Autocomplete log level options.
// -> "trace", "debug", "info", "warn", "error", "fatal", "panic"
func AutocompleteLogLevel(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {