Skip to content

Commit

Permalink
fix: virtual circuit clan set speed int64
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushrangwala committed Jan 19, 2024
1 parent 04b52c1 commit 37edf4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/equinix/metal-cli
go 1.19

require (
github.com/equinix/equinix-sdk-go v0.31.0
github.com/equinix/equinix-sdk-go v0.31.1
github.com/olekukonko/tablewriter v0.0.5
github.com/packethost/packngo v0.30.0
github.com/pkg/errors v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +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/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
github.com/equinix/equinix-sdk-go v0.31.1-0.20240116204418-e7519995af3b h1:PFImIJc0WKh3y2+CT6pCb/jBH1WGRdkQ0N8vD1aUbjk=
github.com/equinix/equinix-sdk-go v0.31.1-0.20240116204418-e7519995af3b/go.mod h1:qnpdRzVftHFNaJFk1VSIrAOTLrIoeDrxzUr3l8ARyvQ=
github.com/equinix/equinix-sdk-go v0.31.1 h1:CA7KKxPVAv72aRfWNtwo70NBwKwA2HdUDMuFG69bXiI=
github.com/equinix/equinix-sdk-go v0.31.1/go.mod h1:qnpdRzVftHFNaJFk1VSIrAOTLrIoeDrxzUr3l8ARyvQ=
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
2 changes: 1 addition & 1 deletion internal/virtualcircuit/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func createVlanVirtualCircuit(vlanInput *metal.VlanVirtualCircuitCreateInput, vn
vlanInput.SetNniVlan(int32(nnVlan))
}
if speed > 0 {
vlanInput.SetSpeed(int32(speed))
vlanInput.SetSpeed(int64(speed))
}
vlanInput.SetVnid(vnid)

Expand Down
2 changes: 1 addition & 1 deletion internal/virtualcircuit/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type vcParamOuter interface {
GetId() string
GetName() string
GetSpeed() int32
GetSpeed() int64
GetCreatedAt() time.Time
}

Expand Down

0 comments on commit 37edf4c

Please sign in to comment.