Skip to content

Document order of ips on loopback#141

Merged
majst01 merged 1 commit into
mainfrom
order-of-ips
Jun 22, 2026
Merged

Document order of ips on loopback#141
majst01 merged 1 commit into
mainfrom
order-of-ips

Conversation

@majst01

@majst01 majst01 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description

The order of additional ips matters, only the first ip is used for default routes.

Used AI-Tools ✨

  • none used for generation

@majst01 majst01 requested a review from a team as a code owner June 22, 2026 11:50
@majst01 majst01 self-assigned this Jun 22, 2026
@majst01 majst01 requested a review from mwennrich June 22, 2026 11:50
MountOptions: createRepeatedString(33),
},
wantErr: true,
wantErrorMessage: `validation errors:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed because order of messages is not guaranteed by protovalidate

@majst01 majst01 merged commit e7d101a into main Jun 22, 2026
3 checks passed
@majst01 majst01 deleted the order-of-ips branch June 22, 2026 12:22
/**
* IPs to to attach to this machine additionally
* If none given, one ip address is acquired per network for the machine
* Order of ips is preserved on the loopback interface.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I do not fully understand the issue, but if this is a breaking change, this is really hard to figure out if all client implementations properly do this to see the same behavior as before?

What happens when I allocate a machine with a fixed private IP and then provide an external network along with the private network for machine creation? Will the auto-acquired IP from the external network be put before my own statically passed definition or not? How can I switch it around?

I think, normal users will not be able to understand the consequences of this comment without reading this PR (+ the entire code base to the point where the network interfaces are configured?). So, to me this feels a little sparse?

As I said, maybe I do not understand the problem, I just worry that my automations break with this when I read it. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants