@@ -246,11 +246,13 @@ func (r *routes) handleInterfaces(ctx context.Context, intfRoutes []string, lino
246
246
if instance .InterfaceGeneration == linodego .GenerationLinode {
247
247
interfaceUpdateOptions := linodego.LinodeInterfaceUpdateOptions {
248
248
VPC : & linodego.VPCInterfaceCreateOptions {
249
- IPv4 : & linodego.VPCInterfaceIPv4CreateOptions {Ranges : linodeInterfaceRoutes },
249
+ SubnetID : intfVPCIP .SubnetID ,
250
+ IPv4 : & linodego.VPCInterfaceIPv4CreateOptions {Ranges : linodeInterfaceRoutes },
250
251
},
251
252
}
252
253
resp , err := r .client .UpdateInterface (ctx , instance .ID , intfVPCIP .InterfaceID , interfaceUpdateOptions )
253
254
if err != nil {
255
+ klog .V (4 ).Infof ("Unable to update legacy interface %d for node %s" , intfVPCIP .InterfaceID , route .TargetNode )
254
256
return err
255
257
}
256
258
klog .V (4 ).Infof ("Updated routes for node %s. Current routes: %v" , route .TargetNode , resp .VPC .IPv4 .Ranges )
@@ -260,6 +262,7 @@ func (r *routes) handleInterfaces(ctx context.Context, intfRoutes []string, lino
260
262
}
261
263
resp , err := r .client .UpdateInstanceConfigInterface (ctx , instance .ID , intfVPCIP .ConfigID , intfVPCIP .InterfaceID , interfaceUpdateOptions )
262
264
if err != nil {
265
+ klog .V (4 ).Infof ("Unable to update linode interface %d for node %s" , intfVPCIP .InterfaceID , route .TargetNode )
263
266
return err
264
267
}
265
268
klog .V (4 ).Infof ("Updated routes for node %s. Current routes: %v" , route .TargetNode , resp .IPRanges )
0 commit comments