Skip to content

Commit

Permalink
LBAAS: add ipv6 field to godo (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvasilevsky authored Nov 25, 2024
1 parent 73ff37f commit 7d59336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions load_balancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type LoadBalancer struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
IP string `json:"ip,omitempty"`
IPv6 string `json:"ipv6,omitempty"`
// SizeSlug is mutually exclusive with SizeUnit. Only one should be specified
SizeSlug string `json:"size,omitempty"`
// SizeUnit is mutually exclusive with SizeSlug. Only one should be specified
Expand Down
2 changes: 2 additions & 0 deletions load_balancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ var lbGetJSONResponse = `
"id": "37e6be88-01ec-4ec7-9bc6-a514d4719057",
"name": "example-lb-01",
"ip": "46.214.185.203",
"ipv6": "fd53:616d:6d60::d2c:b001",
"algorithm": "round_robin",
"status": "active",
"created_at": "2016-12-15T14:16:36Z",
Expand Down Expand Up @@ -439,6 +440,7 @@ func TestLoadBalancers_Get(t *testing.T) {
ID: "37e6be88-01ec-4ec7-9bc6-a514d4719057",
Name: "example-lb-01",
IP: "46.214.185.203",
IPv6: "fd53:616d:6d60::d2c:b001",
Algorithm: "round_robin",
Status: "active",
Created: "2016-12-15T14:16:36Z",
Expand Down

0 comments on commit 7d59336

Please sign in to comment.