@@ -17,7 +17,6 @@ limitations under the License.
1717package v1alpha1
1818
1919import (
20- "github.com/gophercloud/gophercloud/openstack/networking/v2/ports"
2120 corev1 "k8s.io/api/core/v1"
2221 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2322)
@@ -200,17 +199,17 @@ type SubnetFilter struct {
200199}
201200
202201type PortOpts struct {
203- NetworkID string `json:"networkID" required:"true"`
204- NameSuffix string `json:"nameSuffix" required:"true"`
205- Description string `json:"description,omitempty"`
206- AdminStateUp * bool `json:"adminStateUp,omitempty"`
207- MACAddress string `json:"macAddress,omitempty"`
208- FixedIPs []FixedIPs `json:"fixedIPs,omitempty"`
209- TenantID string `json:"tenantID,omitempty"`
210- ProjectID string `json:"projectID,omitempty"`
211- SecurityGroups * []string `json:"securityGroups,omitempty"`
212- AllowedAddressPairs []ports. AddressPair `json:"allowedAddressPairs,omitempty"`
213- Tags []string `json:"tags,omitempty"`
202+ NetworkID string `json:"networkID" required:"true"`
203+ NameSuffix string `json:"nameSuffix" required:"true"`
204+ Description string `json:"description,omitempty"`
205+ AdminStateUp * bool `json:"adminStateUp,omitempty"`
206+ MACAddress string `json:"macAddress,omitempty"`
207+ FixedIPs []FixedIPs `json:"fixedIPs,omitempty"`
208+ TenantID string `json:"tenantID,omitempty"`
209+ ProjectID string `json:"projectID,omitempty"`
210+ SecurityGroups * []string `json:"securityGroups,omitempty"`
211+ AllowedAddressPairs []AddressPair `json:"allowedAddressPairs,omitempty"`
212+ Tags []string `json:"tags,omitempty"`
214213
215214 // The ID of the host where the port is allocated
216215 HostID string `json:"hostID,omitempty"`
@@ -224,6 +223,11 @@ type PortOpts struct {
224223 PortSecurity * bool `json:"portSecurity,omitempty"`
225224}
226225
226+ type AddressPair struct {
227+ IPAddress string `json:"ipAddress,omitempty"`
228+ MACAddress string `json:"macAddress,omitempty"`
229+ }
230+
227231type FixedIPs struct {
228232 SubnetID string `json:"subnetID"`
229233 IPAddress string `json:"ipAddress,omitempty"`
0 commit comments