From 8373fcb573d89591447c9a2b9767b174fff69dde Mon Sep 17 00:00:00 2001 From: emanb29 Date: Sun, 29 Apr 2018 21:14:23 -0700 Subject: [PATCH] Describe IP field of Port definition Signed-off-by: Ethan Bell Signed-off-by: Sebastiaan van Stijn Upstream-commit: 13e0b2651082878f8f17669df3f97ab252a9e095 Component: engine --- components/engine/api/swagger.yaml | 1 + components/engine/api/types/port.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/engine/api/swagger.yaml b/components/engine/api/swagger.yaml index 2124a816b1..cf7043d336 100644 --- a/components/engine/api/swagger.yaml +++ b/components/engine/api/swagger.yaml @@ -155,6 +155,7 @@ definitions: IP: type: "string" format: "ip-address" + description: "Host IP address that the container's port is mapped to" PrivatePort: type: "integer" format: "uint16" diff --git a/components/engine/api/types/port.go b/components/engine/api/types/port.go index ad52d46d56..d91234744c 100644 --- a/components/engine/api/types/port.go +++ b/components/engine/api/types/port.go @@ -7,7 +7,7 @@ package types // swagger:model Port type Port struct { - // IP + // Host IP address that the container's port is mapped to IP string `json:"IP,omitempty"` // Port on the container