Skip to content

Commit

Permalink
skip ENI needs IP check for trunk ENI and EFA ENIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 committed Feb 20, 2024
1 parent 510d647 commit 4825b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ipamd/datastore/data_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ func (ds *DataStore) GetENINeedsIP(maxIPperENI int, skipPrimary bool) *ENI {
ds.lock.Lock()
defer ds.lock.Unlock()
for _, eni := range ds.eniPool {
if skipPrimary && eni.IsPrimary {
ds.log.Debugf("Skip the primary ENI for need IP check")
if (skipPrimary && eni.IsPrimary) || eni.IsTrunk || eni.IsEFA {
ds.log.Debugf("Skip needs IP check for primary ENI, trunk ENI, or EFA ENIs")
continue
}
if len(eni.AvailableIPv4Cidrs) < maxIPperENI {
Expand Down

0 comments on commit 4825b3c

Please sign in to comment.