Skip to content

Commit

Permalink
fix: empty trunk id
Browse files Browse the repository at this point in the history
  • Loading branch information
l1b0k committed Sep 12, 2023
1 parent 30a6f26 commit b093ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions daemon/eni-multi-ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ func newENIIPResourceManager(poolConfig *types.PoolConfig, ecs ipam.API, k8s Kub
factory := &eniIPFactory{
name: factoryNameENIIP,
eniFactory: eniFactory,
trunkOnEni: poolConfig.TrunkENIID,
enableTrunk: poolConfig.TrunkENIID != "",
enis: []*ENI{},
eniOperChan: make(chan struct{}, maxEniOperating),
Expand Down
1 change: 1 addition & 0 deletions daemon/eni.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func newENIFactory(poolConfig *types.PoolConfig, ecs ipam.API) (*eniFactory, err
vSwitchOptions: poolConfig.VSwitchOptions,
eniTags: poolConfig.ENITags,
securityGroupIDs: poolConfig.SecurityGroupIDs,
trunkOnEni: poolConfig.TrunkENIID,
enableTrunk: poolConfig.TrunkENIID != "",
instanceID: poolConfig.InstanceID,
ecs: ecs,
Expand Down

0 comments on commit b093ac4

Please sign in to comment.