summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-05 22:14:01 +0100
committerGitHub <noreply@github.com>2021-11-05 22:14:01 +0100
commit6805befec2ca9b9a816b1efda0bf43a67cee09a7 (patch)
treed86c50f122cc58c62eeb10f8e908603c6a71d470 /pkg
parent6c0690dbab9de2f41365cca4cf1ed74514db7f52 (diff)
parent02f67181a281a4d6ae6bc9b21970d3cd66718b11 (diff)
downloadpodman-6805befec2ca9b9a816b1efda0bf43a67cee09a7.tar.gz
podman-6805befec2ca9b9a816b1efda0bf43a67cee09a7.tar.bz2
podman-6805befec2ca9b9a816b1efda0bf43a67cee09a7.zip
Merge pull request #12187 from Luap99/fix-swagger
[CI:DOCS] Fix swagger definition for the new mac address type
Diffstat (limited to 'pkg')
-rw-r--r--pkg/specgen/podspecgen.go1
-rw-r--r--pkg/specgen/specgen.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgen/podspecgen.go b/pkg/specgen/podspecgen.go
index 32d5be79a..948fb990c 100644
--- a/pkg/specgen/podspecgen.go
+++ b/pkg/specgen/podspecgen.go
@@ -99,6 +99,7 @@ type PodNetworkConfig struct {
// Only available if NetNS is set to Bridge (the default for root).
// As such, conflicts with NoInfra=true by proxy.
// Optional.
+ // swagger:strfmt string
StaticMAC *types.HardwareAddr `json:"static_mac,omitempty"`
// PortMappings is a set of ports to map into the infra container.
// As, by default, containers share their network with the infra
diff --git a/pkg/specgen/specgen.go b/pkg/specgen/specgen.go
index 593d91c64..8a4497130 100644
--- a/pkg/specgen/specgen.go
+++ b/pkg/specgen/specgen.go
@@ -401,6 +401,7 @@ type ContainerNetworkConfig struct {
// StaticMAC is a static MAC address to set in the container.
// Only available if NetNS is set to bridge.
// Optional.
+ // swagger:strfmt string
StaticMAC *nettypes.HardwareAddr `json:"static_mac,omitempty"`
// PortBindings is a set of ports to map into the container.
// Only available if NetNS is set to bridge or slirp.