Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LBAAS: add ipv6 field to loadbalancer model #760

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
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
Loading