summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/ports.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-24 10:30:11 -0400
committerGitHub <noreply@github.com>2021-08-24 10:30:11 -0400
commite9daaf62e3921b8c696f3abd92f001a9447c8aa1 (patch)
treeea500d48f28682ad36f6eb4954717c6629fb68b4 /pkg/specgen/generate/ports.go
parente20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d (diff)
parentc0b1edd6a4dcad2b89a01975988d186b21b3158e (diff)
downloadpodman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.gz
podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.bz2
podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.zip
Merge pull request #11232 from Luap99/network
Network interface
Diffstat (limited to 'pkg/specgen/generate/ports.go')
-rw-r--r--pkg/specgen/generate/ports.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/specgen/generate/ports.go b/pkg/specgen/generate/ports.go
index c00ad19fb..bd64080b1 100644
--- a/pkg/specgen/generate/ports.go
+++ b/pkg/specgen/generate/ports.go
@@ -7,6 +7,7 @@ import (
"strings"
"github.com/containers/common/libimage"
+ "github.com/containers/podman/v3/libpod/network/types"
"github.com/containers/podman/v3/utils"
"github.com/containers/podman/v3/pkg/specgen"
@@ -24,7 +25,7 @@ const (
// Parse port maps to OCICNI port mappings.
// Returns a set of OCICNI port mappings, and maps of utilized container and
// host ports.
-func ParsePortMapping(portMappings []specgen.PortMapping) ([]ocicni.PortMapping, map[string]map[string]map[uint16]uint16, map[string]map[string]map[uint16]uint16, error) {
+func ParsePortMapping(portMappings []types.PortMapping) ([]ocicni.PortMapping, map[string]map[string]map[uint16]uint16, map[string]map[string]map[uint16]uint16, error) {
// First, we need to validate the ports passed in the specgen, and then
// convert them into CNI port mappings.
type tempMapping struct {