From 27cf3a5c61b5d18a10cfa17be6e926bab0a4dd97 Mon Sep 17 00:00:00 2001 From: Josh Vasilevsky Date: Fri, 22 Nov 2024 12:15:58 -0500 Subject: [PATCH] LBAAS: add ipv6 field to godo --- load_balancers.go | 1 + load_balancers_test.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/load_balancers.go b/load_balancers.go index a24952b7..a12729dd 100644 --- a/load_balancers.go +++ b/load_balancers.go @@ -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 diff --git a/load_balancers_test.go b/load_balancers_test.go index 10dc2f97..f1126ad4 100644 --- a/load_balancers_test.go +++ b/load_balancers_test.go @@ -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", @@ -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",