Repository navigation
feat(instance): migrate private-nic to v2 private-network-interface - #6157
Merged
Merged
Conversation
❌ 4 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
3 times, most recently
from
October 5, 2026 12:43
f69fc2d to
d2cd853
Compare
Code coverage overviewLanguages: Go Go / cli
View coverage of the 8 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Mia-Cross
marked this pull request as ready for review
October 5, 2026 12:48
elwinar
previously approved these changes
Oct 5, 2026
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
3 times, most recently
from
October 22, 2026 13:51
652ef4d to
c25b8fc
Compare
elwinar
previously approved these changes
Oct 27, 2026
remyleone
reviewed
Oct 27, 2026
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
from
October 27, 2026 11:10
947ea0a to
2ab56f1
Compare
pypaut
requested changes
Oct 27, 2026
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
from
October 27, 2026 15:10
e430d11 to
5d4c57d
Compare
pypaut
previously approved these changes
Oct 28, 2026
elwinar
previously approved these changes
Oct 28, 2026
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
from
October 29, 2026 12:53
43e8147 to
d9a4f68
Compare
- ignore case on mac address + cleanup IPAM IP in test - deprecate commands in custom.go + move ipam testhelpers - break when PNI is found by mac address - return error if mac address is not found Co-authored-by: esoulard <esoulard@scaleway.com> Co-authored-by: Geoffrey Jount <gjount@scaleway.com>
Mia-Cross
force-pushed
the
instance_V2_private_nic
branch
from
October 29, 2026 12:54
d9a4f68 to
1808c25
Compare
elwinar
approved these changes
Nov 2, 2026
|
|
||
| import "github.com/scaleway/scaleway-cli/v2/core" | ||
|
|
||
| func CreateIPAMIPFromPrivateNetwork() core.BeforeFunc { |
Contributor
There was a problem hiding this comment.
Nit: We can probably remove the "IPAM" from the function name since this is now in the ipam package?
| func deprecatePrivateNicCommand(c *core.Command) *core.Command { | ||
| c.Hidden = true | ||
| c.Deprecated = true | ||
| c.DeprecationMessage = "private-nic is a term only used in v1, please use private-network-interface instead." |
Contributor
There was a problem hiding this comment.
Users probably don't really know or care about v1/v2, we should probably leave the version out of the message.
private-nic has been deprecated, use private-network-interface instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR add support for
private-network-interface, the API v2 equivalent of aprivate-nic.It also deprecates
private-niccommands.