Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions openstack/elb/v3/loadbalancers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ type CreateOpts struct {
L7Flavor string `json:"l7_flavor_id,omitempty"`

// IPv6 Bandwidth.
IPV6Bandwidth BandwidthRef `json:"ipv6_bandwidth,omitempty"`
IPV6Bandwidth *BandwidthRef `json:"ipv6_bandwidth,omitempty"`

// Public IP IDs.
PublicIPIds []string `json:"publicip_ids,omitempty"`

// Public IP.
PublicIP PublicIP `json:"publicip,omitempty"`
PublicIP *PublicIP `json:"publicip,omitempty"`

// ELB VirSubnet IDs.
ElbSubnetIds []string `json:"elb_virsubnet_ids,omitempty"`
Expand All @@ -78,6 +78,12 @@ type BandwidthRef struct {
ID string `json:"id" required:"true"`
}

// UBandwidthRef
type UBandwidthRef struct {
// Share Bandwidth ID
ID *string `json:"id"`
}

// PublicIP
type PublicIP struct {
// IP Version.
Expand Down Expand Up @@ -170,10 +176,10 @@ type UpdateOpts struct {
VipAddress string `json:"vip_address,omitempty"`

// The network on which to allocate the Loadbalancer's address.
VipSubnetID string `json:"vip_subnet_cidr_id,omitempty"`
VipSubnetID *string `json:"vip_subnet_cidr_id"`

// The V6 network on which to allocate the Loadbalancer's address.
IpV6VipSubnetID string `json:"ipv6_vip_virsubnet_id,omitempty"`
IpV6VipSubnetID *string `json:"ipv6_vip_virsubnet_id"`

// The UUID of a l4 flavor.
L4Flavor string `json:"l4_flavor_id,omitempty"`
Expand All @@ -182,7 +188,7 @@ type UpdateOpts struct {
L7Flavor string `json:"l7_flavor_id,omitempty"`

// IPv6 Bandwidth.
IPV6Bandwidth BandwidthRef `json:"ipv6_bandwidth,omitempty"`
IPV6Bandwidth *UBandwidthRef `json:"ipv6_bandwidth,omitempty"`

// ELB VirSubnet IDs.
ElbSubnetIds []string `json:"elb_virsubnet_ids,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion openstack/elb/v3/loadbalancers/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ type EipInfo struct {
EipID string `json:"eip_id"`
// Eip Address
EipAddress string `json:"eip_address"`
// Eip Address
IpVersion int `json:"ip_version"`
}

// PoolRef
Expand All @@ -139,7 +141,7 @@ type PublicIpInfo struct {
// Public IP Address
PublicIpAddress string `json:"publicip_address"`
// IP Version
IpVersion string `json:"ip_version"`
IpVersion int `json:"ip_version"`
}

// StatusTree represents the status of a loadbalancer.
Expand Down