Skip to content

Commit

Permalink
LBAAS: display LBs IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
jvasilevsky committed Nov 27, 2024
1 parent 8f46e97 commit fda074a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions commands/displayers/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (lb *LoadBalancer) Cols() []string {
return []string{
"ID",
"IP",
"IPv6",
"Name",
"Status",
"Created",
Expand All @@ -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",
Expand Down Expand Up @@ -107,6 +109,9 @@ func (lb *LoadBalancer) KV() []map[string]any {
if l.SizeUnit > 0 {
o["SizeUnit"] = l.SizeUnit
}
if l.IPv6 != "" {

Check failure on line 112 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 112 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, macos-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 112 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 112 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, macos-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)
o["IPv6"] = l.IPv6

Check failure on line 113 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 113 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, macos-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 113 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)

Check failure on line 113 in commands/displayers/load_balancer.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, macos-latest)

l.IPv6 undefined (type do.LoadBalancer has no field or method IPv6)
}
out = append(out, o)
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fda074a

Please sign in to comment.