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

support multiple network interfaces on instances #2

Open
briandowns opened this issue Dec 4, 2024 · 0 comments
Open

support multiple network interfaces on instances #2

briandowns opened this issue Dec 4, 2024 · 0 comments

Comments

@briandowns
Copy link
Contributor

briandowns commented Dec 4, 2024

This driver creates instances with a single network interface.

NetworkInterfaces: oxide.InstanceNetworkInterfaceAttachment{
Params: []oxide.InstanceNetworkInterfaceCreate{
{
Description: defaultDescription,
Name: oxide.Name("nic-" + d.GetMachineName()),
SubnetName: oxide.Name(d.Subnet),
VpcName: oxide.Name(d.VPC),
},
},
Type: oxide.InstanceNetworkInterfaceAttachmentTypeCreate,
},

Then it uses the IP address of the first, and only, network interface as the IP address for Rancher to connect to.

if len(networkInterfaces) == 0 {
return errors.New("no valid network interfaces found")
}
d.IPAddress = networkInterfaces[0].Ip

Update the driver to support the creation of multiple network interfaces and allow the operator to specify which network interface should be used to populate the IP address used by Rancher.

@sudomateo sudomateo changed the title Account for multi homed servers support multiple network interfaces on instances Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant