spiegel_podman/cmd/podman/network.go
baude ee432cf279 podman network create
initial implementation of network create.  we only support bridging
networks with this first pass.

Signed-off-by: baude <bbaude@redhat.com>
2019-09-09 09:32:43 -05:00

31 lines
683 B
Go

//+build !remoteclient
package main
import (
"github.com/containers/libpod/cmd/podman/cliconfig"
"github.com/spf13/cobra"
)
var networkcheckDescription = "Manage networks"
var networkcheckCommand = cliconfig.PodmanCommand{
Command: &cobra.Command{
Use: "network",
Short: "Manage Networks",
Long: networkcheckDescription,
RunE: commandRunE(),
},
}
var networkcheckCommands = []*cobra.Command{
_networkCreateCommand,
_networkinspectCommand,
_networklistCommand,
_networkrmCommand,
}
func init() {
networkcheckCommand.AddCommand(networkcheckCommands...)
networkcheckCommand.SetUsageTemplate(UsageTemplate())
rootCmd.AddCommand(networkcheckCommand.Command)
}