Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 0c24665

Browse files
author
Travis Truman
committed
Addressing feedback from @jrperritt to move to []AddressPair explicit typing
1 parent a371c0e commit 0c24665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openstack/networking/v2/ports/requests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type CreateOpts struct {
104104
DeviceOwner string
105105
TenantID string
106106
SecurityGroups []string
107-
AllowedAddressPairs interface{}
107+
AllowedAddressPairs []AddressPair
108108
}
109109

110110
// ToPortCreateMap casts a CreateOpts struct to a map.
@@ -178,7 +178,7 @@ type UpdateOpts struct {
178178
DeviceID string
179179
DeviceOwner string
180180
SecurityGroups []string
181-
AllowedAddressPairs interface{}
181+
AllowedAddressPairs []AddressPair
182182
}
183183

184184
// ToPortUpdateMap casts an UpdateOpts struct to a map.

0 commit comments

Comments
 (0)