diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-08-24 10:30:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 10:30:11 -0400 |
commit | e9daaf62e3921b8c696f3abd92f001a9447c8aa1 (patch) | |
tree | ea500d48f28682ad36f6eb4954717c6629fb68b4 /pkg/specgen/podspecgen.go | |
parent | e20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d (diff) | |
parent | c0b1edd6a4dcad2b89a01975988d186b21b3158e (diff) | |
download | podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.gz podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.bz2 podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.zip |
Merge pull request #11232 from Luap99/network
Network interface
Diffstat (limited to 'pkg/specgen/podspecgen.go')
-rw-r--r-- | pkg/specgen/podspecgen.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/specgen/podspecgen.go b/pkg/specgen/podspecgen.go index 893ebf675..386571d11 100644 --- a/pkg/specgen/podspecgen.go +++ b/pkg/specgen/podspecgen.go @@ -3,6 +3,7 @@ package specgen import ( "net" + "github.com/containers/podman/v3/libpod/network/types" spec "github.com/opencontainers/runtime-spec/specs-go" ) @@ -102,7 +103,7 @@ type PodNetworkConfig struct { // container, this will forward the ports to the entire pod. // Only available if NetNS is set to Bridge or Slirp. // Optional. - PortMappings []PortMapping `json:"portmappings,omitempty"` + PortMappings []types.PortMapping `json:"portmappings,omitempty"` // CNINetworks is a list of CNI networks that the infra container will // join. As, by default, containers share their network with the infra // container, these networks will effectively be joined by the |