summaryrefslogtreecommitdiff
path: root/cmd/podman/networks/network.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-04-30 11:02:59 -0500
committerbaude <bbaude@redhat.com>2020-04-30 14:53:54 -0500
commite88a418528173c1bccc9bea6a9eaf3b389d57e47 (patch)
treeeedbaca61136b8c3be2960a4486a780b69f71dd3 /cmd/podman/networks/network.go
parentc31bf2e97644b76163624149bb130528c6a5a394 (diff)
downloadpodman-e88a418528173c1bccc9bea6a9eaf3b389d57e47.tar.gz
podman-e88a418528173c1bccc9bea6a9eaf3b389d57e47.tar.bz2
podman-e88a418528173c1bccc9bea6a9eaf3b389d57e47.zip
v2networking enable commands
Enable the networking commands for v2. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/networks/network.go')
-rw-r--r--cmd/podman/networks/network.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd/podman/networks/network.go b/cmd/podman/networks/network.go
index e2a928312..56dd390ea 100644
--- a/cmd/podman/networks/network.go
+++ b/cmd/podman/networks/network.go
@@ -1,4 +1,4 @@
-package images
+package network
import (
"github.com/containers/libpod/cmd/podman/registry"
@@ -9,7 +9,7 @@ import (
var (
// Command: podman _network_
- cmd = &cobra.Command{
+ networkCmd = &cobra.Command{
Use: "network",
Short: "Manage networks",
Long: "Manage networks",
@@ -18,12 +18,9 @@ var (
}
)
-// TODO add the following to main.go to get networks back onto the
-// command list.
-// _ "github.com/containers/libpod/cmd/podman/networks"
func init() {
registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode},
- Command: cmd,
+ Command: networkCmd,
})
}