-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated metal-go client for sub-commands ports #290
Conversation
internal/ports/vlans.go
Outdated
return errors.New("no VLAN assignments specified") | ||
} | ||
batch, _, err := c.VLANService.CreateBatch(portID, req, getOpts) | ||
batch, _, err := c.PortService.CreatePortVlanAssignmentBatch(context.Background(), portID).PortVlanAssignmentBatchCreateInput(*req).I |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
batch, _, err := c.PortService.CreatePortVlanAssignmentBatch(context.Background(), portID).PortVlanAssignmentBatchCreateInput(*req).I | |
batch, _, err := c.PortService.CreatePortVlanAssignmentBatch(context.Background(), portID).PortVlanAssignmentBatchCreateInput(*req).Execute() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be addressed in spec side first missing Includes, Excludes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any issues like this where you are aware that the metal-go
client is missing features that are needed for conversion should be noted on the relevant PR and the PR should be placed in draft status. That will protect against accidental merge of changes that are known to be not completely working, and will make it easier for the whole team to understand what issues are blocking the remaining metal-go
conversion PRs.
Is this good to go or does it need to be set to draft? |
inc := []string{} | ||
exc := []string{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be wired up to the --include
and --exclude
flags
inc := []string{} | ||
exc := []string{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should also be wired up to the --include
and --exclude
flags
This should be resolved as of |
/assign @aayushrangwala |
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
Changes are handled in the following PR #355, close it |
Breakout from #270
What this PR does / why we need it:
This PR replaces packngo with metal-go for all interactions with the Equinix Metal API specifically for ports sub commands
DISCUSSION POINTS:
Missing Includes and Excludes in Spec for the API "CreatePortVlanAssignmentBatch"