From fda074a0a0e08ccba1689469d12bf9f752e5cf9a Mon Sep 17 00:00:00 2001 From: Josh Vasilevsky Date: Wed, 27 Nov 2024 09:40:35 -0500 Subject: [PATCH] LBAAS: display LBs IPv6 --- commands/displayers/load_balancer.go | 5 +++++ go.mod | 2 +- go.sum | 2 ++ vendor/modules.txt | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/commands/displayers/load_balancer.go b/commands/displayers/load_balancer.go index 37524762d..c3bfc9fe2 100644 --- a/commands/displayers/load_balancer.go +++ b/commands/displayers/load_balancer.go @@ -36,6 +36,7 @@ func (lb *LoadBalancer) Cols() []string { return []string{ "ID", "IP", + "IPv6", "Name", "Status", "Created", @@ -57,6 +58,7 @@ func (lb *LoadBalancer) ColMap() map[string]string { return map[string]string{ "ID": "ID", "IP": "IP", + "IPv6": "IPv6", "Name": "Name", "Status": "Status", "Created": "Created At", @@ -107,6 +109,9 @@ func (lb *LoadBalancer) KV() []map[string]any { if l.SizeUnit > 0 { o["SizeUnit"] = l.SizeUnit } + if l.IPv6 != "" { + o["IPv6"] = l.IPv6 + } out = append(out, o) } diff --git a/go.mod b/go.mod index cbc99b2f0..3e2106902 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22 require ( github.com/blang/semver v3.5.1+incompatible github.com/creack/pty v1.1.21 - github.com/digitalocean/godo v1.130.1-0.20241119155329-45ad288c38bd + github.com/digitalocean/godo v1.131.0 github.com/docker/cli v24.0.5+incompatible github.com/docker/docker v25.0.6+incompatible github.com/docker/docker-credential-helpers v0.7.0 // indirect diff --git a/go.sum b/go.sum index 987729c07..272988f45 100644 --- a/go.sum +++ b/go.sum @@ -93,6 +93,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/digitalocean/godo v1.130.1-0.20241119155329-45ad288c38bd h1:3TCd+SNAbaRHQSiWmMJWtPitvZt2lTq3th87CxMl9Xo= github.com/digitalocean/godo v1.130.1-0.20241119155329-45ad288c38bd/go.mod h1:PU8JB6I1XYkQIdHFop8lLAY9ojp6M0XcU0TWaQSxbrc= +github.com/digitalocean/godo v1.131.0 h1:0WHymufAV5avpodT0h5/pucUVfO4v7biquOIqhLeROY= +github.com/digitalocean/godo v1.131.0/go.mod h1:PU8JB6I1XYkQIdHFop8lLAY9ojp6M0XcU0TWaQSxbrc= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/cli v24.0.5+incompatible h1:WeBimjvS0eKdH4Ygx+ihVq1Q++xg36M/rMi4aXAvodc= diff --git a/vendor/modules.txt b/vendor/modules.txt index 98a5ad39e..4887d98ea 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -61,7 +61,7 @@ github.com/creack/pty # github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc ## explicit github.com/davecgh/go-spew/spew -# github.com/digitalocean/godo v1.130.1-0.20241119155329-45ad288c38bd +# github.com/digitalocean/godo v1.131.0 ## explicit; go 1.22 github.com/digitalocean/godo github.com/digitalocean/godo/metrics