Skip to content

Commit

Permalink
fix(deps): update module github.com/equinix/equinix-sdk-go to v0.35.0 (
Browse files Browse the repository at this point in the history
…#450)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/equinix/equinix-sdk-go](https://togithub.com/equinix/equinix-sdk-go)
| `v0.32.0` -> `v0.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fequinix%2fequinix-sdk-go/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fequinix%2fequinix-sdk-go/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fequinix%2fequinix-sdk-go/v0.32.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fequinix%2fequinix-sdk-go/v0.32.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>equinix/equinix-sdk-go
(github.com/equinix/equinix-sdk-go)</summary>

###
[`v0.35.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.35.0)

[Compare
Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.1...v0.35.0)

##### Features

- API Sync by GitHub Action for
[@&#8203;0xch4z](https://togithub.com/0xch4z)
([#&#8203;40](https://togithub.com/equinix/equinix-sdk-go/issues/40))
([69f97a5](https://togithub.com/equinix/equinix-sdk-go/commit/69f97a56da22b1ae56ecb0c44b692518eb595247))

###
[`v0.34.1`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.34.1)

[Compare
Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.0...v0.34.1)

#####
[0.34.1](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.0...v0.34.1)
(2024-03-06)

##### Bug Fixes

- Correct Fabricv4 API Spec via patching to use valid any type
([#&#8203;42](https://togithub.com/equinix/equinix-sdk-go/issues/42))
([c243f46](https://togithub.com/equinix/equinix-sdk-go/commit/c243f46a60c9bd1ea4a1aa99ba5109edd44be810))

###
[`v0.34.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.34.0)

[Compare
Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.33.0...v0.34.0)

##### Features

- API Sync by GitHub Action for
[@&#8203;ctreatma](https://togithub.com/ctreatma)
([#&#8203;34](https://togithub.com/equinix/equinix-sdk-go/issues/34))
([201c82c](https://togithub.com/equinix/equinix-sdk-go/commit/201c82c6ce7921412992714b3df3166fa16e18f3))
- Onboarding Fabric v4 Service to Equinix-SDK-Go
([#&#8203;37](https://togithub.com/equinix/equinix-sdk-go/issues/37))
([82266c4](https://togithub.com/equinix/equinix-sdk-go/commit/82266c4f3f825b3479fff32fa609df89afebb1f0))

###
[`v0.33.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.33.0)

[Compare
Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.32.0...v0.33.0)

##### Features

- upgrade openapi-generator to latest version
([#&#8203;15](https://togithub.com/equinix/equinix-sdk-go/issues/15))
([725a10a](https://togithub.com/equinix/equinix-sdk-go/commit/725a10a42f51a932e65740cb73c7762b5806a3d7))

**Full Changelog**:
equinix/equinix-sdk-go@v0.32.0...v0.33.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/equinix/metal-cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles Treatman <ctreatman@equinix.com>
  • Loading branch information
renovate[bot] and ctreatma authored May 10, 2024
1 parent 1298e4c commit dc553db
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module github.com/equinix/metal-cli
go 1.19

require (
github.com/equinix/equinix-sdk-go v0.32.0
github.com/equinix/equinix-sdk-go v0.35.0
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240119083558-1b970713d09a
golang.org/x/term v0.16.0
sigs.k8s.io/yaml v1.3.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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/equinix/equinix-sdk-go v0.32.0 h1:zUn0Em5FJe6f6bntftrDBpO9L+XhbpFMPuQ7RKEOgXM=
github.com/equinix/equinix-sdk-go v0.32.0/go.mod h1:qnpdRzVftHFNaJFk1VSIrAOTLrIoeDrxzUr3l8ARyvQ=
github.com/equinix/equinix-sdk-go v0.35.0 h1:p/uwA8QPBAuNnKGc3mQkwjw+6++qUadLNnKFQ8jw+wg=
github.com/equinix/equinix-sdk-go v0.35.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
Expand Down Expand Up @@ -58,6 +60,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
Expand Down
3 changes: 2 additions & 1 deletion internal/interconnections/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"strconv"

metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -46,7 +47,7 @@ func (c *Client) Create() *cobra.Command {
)
in.Vlans = vlans
// default speed
in.SetSpeed(speed)
in.SetSpeed(strconv.Itoa(int(speed)))

createOrganizationInterconnectionRequest.
VlanFabricVcCreateInput = in
Expand Down
4 changes: 2 additions & 2 deletions internal/virtualcircuit/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func createVrfVirtualCircuit(vrfInput *metal.VrfVirtualCircuitCreateInput, proje
vrfInput.SetMetalIp(metalIP)
vrfInput.SetMd5(md5)
if speed > 0 {
vrfInput.SetSpeed(int32(speed))
vrfInput.SetSpeed(strconv.Itoa(speed))
}

return metal.VirtualCircuitCreateInput{VrfVirtualCircuitCreateInput: vrfInput}
Expand All @@ -60,7 +60,7 @@ func createVlanVirtualCircuit(vlanInput *metal.VlanVirtualCircuitCreateInput, vn
vlanInput.SetNniVlan(int32(nnVlan))
}
if speed > 0 {
vlanInput.SetSpeed(int64(speed))
vlanInput.SetSpeed(strconv.Itoa(speed))
}
vlanInput.SetVnid(vnid)

Expand Down
2 changes: 1 addition & 1 deletion test/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func CreateTestVirtualCircuit(t *testing.T, projectId, connId, portId, vlanId, n

vlanVCCreateInput := metalv1.NewVlanVirtualCircuitCreateInput(projectId)
vlanVCCreateInput.SetVnid(vlanId)
vlanVCCreateInput.SetSpeed(100)
vlanVCCreateInput.SetSpeed("100")
vlanVCCreateInput.SetNniVlan(1110)
vlanVCCreateInput.SetName(name)

Expand Down

0 comments on commit dc553db

Please sign in to comment.