Skip to content

Support multiple network interfaces #2

Description

@briandowns

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions