All acceptance/unit tests pass :raised_hands:
diff --git a/openstack/networking/v2/ports/requests.go b/openstack/networking/v2/ports/requests.go
index db81d4a..548b9f2 100644
--- a/openstack/networking/v2/ports/requests.go
+++ b/openstack/networking/v2/ports/requests.go
@@ -170,6 +170,7 @@
ReqBody: &reqBody,
Results: &res,
OkCodes: []int{201},
+ DumpReqJson: true,
})
if err != nil {
return nil, err
diff --git a/openstack/networking/v2/ports/results.go b/openstack/networking/v2/ports/results.go
index 54390dc..f7f947d 100644
--- a/openstack/networking/v2/ports/results.go
+++ b/openstack/networking/v2/ports/results.go
@@ -7,7 +7,7 @@
type IP struct {
SubnetID string `mapstructure:"subnet_id" json:"subnet_id"`
- IPAddress string `mapstructure:"ip_address" json:"ip_address"`
+ IPAddress string `mapstructure:"ip_address" json:"ip_address,omitempty"`
}
type Port struct {