Skip to content

Commit 5053347

Browse files
committed
Always attach to network card 0
1 parent 188a238 commit 5053347

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

pkg/aws/eni/node.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,7 @@ func (n *Node) CreateInterface(ctx context.Context, allocation *ipam.AllocationA
524524

525525
var attachmentID string
526526
for range maxAttachRetries {
527-
if n.k8sObj.Spec.ENI.InstanceType == "p4d.24xlarge" {
528-
scopedLog.Info("Attaching ENI for p4d.24xlarge", "cardID", 0, "index", 1)
529-
attachmentID, err = n.manager.api.AttachNetworkInterface(ctx, 1, n.node.InstanceID(), eniID, 0)
530-
} else {
531-
attachmentID, err = n.manager.api.AttachNetworkInterface(ctx, index, n.node.InstanceID(), eniID)
532-
}
527+
attachmentID, err = n.manager.api.AttachNetworkInterface(ctx, index, n.node.InstanceID(), eniID, 0)
533528
// The index is already in use, this can happen if the local
534529
// list of ENIs is oudated. Retry the attachment to avoid
535530
// having to delete the ENI

0 commit comments

Comments
 (0)