Skip to content
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

Allow passing several subnets for vm creation #266

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

fernflower
Copy link
Contributor

Previously only one user-defined subnet was supported which proved to be not enough for some tricky cases.

This patch will allow specifying comma-separated list of subnets in the template, ex.

subnet_ids: "969ef856-27e9-4255-ae9e-61b1a7bb6e2f,7233c9d2-aac8-41b5-8d3d-264eb2a57287"

The address from the first specified subnet will be used to connect to the machine via ssh.

Closes: #264

@ppc64le-cloud-bot ppc64le-cloud-bot added the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 15, 2025
@ppc64le-cloud-bot
Copy link
Contributor

Welcome @fernflower! It looks like this is your first PR to ppc64le-cloud/packer-plugin-powervs 🎉

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 15, 2025
@ppc64le-cloud-bot ppc64le-cloud-bot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jan 15, 2025
Previously only one user-defined subnet was supported
which proved to be not enough for some tricky cases.

This patch will allow specifying comma-separated list of subnets
in the template, ex.

subnet_ids: "969ef856-27e9-4255-ae9e-61b1a7bb6e2f,7233c9d2-aac8-41b5-8d3d-264eb2a57287"

The address from the first specified subnet will be used
to connect to the machine via ssh.
Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

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

I'm merging as is for now to unblock you folks, will work on the code refactoring later(will not disturb the user input, will stick to subnet_ids)

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fernflower, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2025
@mkumatag
Copy link
Member

/lgtm

@ppc64le-cloud-bot ppc64le-cloud-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2025
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 1d6a6ae into ppc64le-cloud:main Jan 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use several subnets for vm provisioning - at least one user-supplied private and external
3 participants