Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set device names while building task network config #4026

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

samjkon
Copy link
Contributor

@samjkon samjkon commented Nov 14, 2023

Summary

Devices names are the names assigned to the interfaces on the host. For ex, eth1. We need to specify what device names should be assigned to each interface when they are being configured by the CNI plugins.

Implementation details

The method that builds the task's network config object was modified to also invoke the setDeviceName method. The setDeviceName takes a map of mac addresses to device name as an argument.

Testing

go test -tags unit ./...

New tests cover the changes: yes

Description for the changelog

Set device names while building task network config.

Does this PR include breaking model changes? If so, Have you added transformation functions?
No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Devices names are the names assigned to the interfaces on the host.
For ex, eth1. We need to specify what device names should be assigned
to each interface when they are being configured by the CNI plugins.
@samjkon samjkon requested a review from a team as a code owner November 14, 2023 03:07
@samjkon samjkon merged commit 62d0d0b into aws:dev Nov 15, 2023
43 checks passed
@samjkon samjkon deleted the devname branch November 15, 2023 02:11
tshan2001 pushed a commit to tshan2001/amazon-ecs-agent that referenced this pull request Nov 17, 2023
* Set device names while building task network config

Devices names are the names assigned to the interfaces on the host.
For ex, eth1. We need to specify what device names should be assigned
to each interface when they are being configured by the CNI plugins.
@danehlim danehlim mentioned this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants