Skip to content

Commit

Permalink
Address ifname size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyic committed Aug 29, 2022
1 parent c088bac commit 9b12141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion agent/api/task/task_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (task *Task) BuildCNIConfig(includeIPAMConfig bool, cniConfig *ecscni.Confi

// IfName is expected by the plugin but is not used.
cniConfig.NetworkConfigs = append(cniConfig.NetworkConfigs, &ecscni.NetworkConfig{
IfName: eni.ID,
IfName: ecscni.DefaultENIName,
CNINetworkConfig: netconf,
})
}
Expand Down
2 changes: 2 additions & 0 deletions agent/ecscni/types_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const (
// NetworkName has to be non-empty field for network config.
// We do not actually make use of the field, hence passing in a placeholder string to fulfill the API spec
defaultNetworkName = "network-name"
// DefaultENIName is the name of eni interface name in the container namespace
DefaultENIName = "eth0"
)

var (
Expand Down

0 comments on commit 9b12141

Please sign in to comment.