Skip to content

Commit 92f84c2

Browse files
committed
1 parent 1719bd0 commit 92f84c2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cloud/linode/route_controller.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ func (r *routes) DeleteRoute(ctx context.Context, clusterName string, route *clo
245245
func (r *routes) handleInterfaces(ctx context.Context, intfRoutes []string, linodeInterfaceRoutes []linodego.VPCInterfaceIPv4RangeCreateOptions, instance *linodego.Instance, intfVPCIP linodego.VPCIP, route *cloudprovider.Route) error {
246246
if instance.InterfaceGeneration == linodego.GenerationLinode {
247247
interfaceUpdateOptions := linodego.LinodeInterfaceUpdateOptions{
248-
VPC: &linodego.VPCInterfaceCreateOptions{
249-
SubnetID: intfVPCIP.SubnetID,
250-
IPv4: &linodego.VPCInterfaceIPv4CreateOptions{Ranges: linodeInterfaceRoutes},
248+
VPC: &linodego.VPCInterfaceUpdateOptions{
249+
IPv4: &linodego.VPCInterfaceIPv4CreateOptions{Ranges: &linodeInterfaceRoutes},
251250
},
252251
}
253252
resp, err := r.client.UpdateInterface(ctx, instance.ID, intfVPCIP.InterfaceID, interfaceUpdateOptions)

0 commit comments

Comments
 (0)