Skip to content

config-linux: remove %d template requirement for netDevices - #1333

Merged
kolyshkin merged 1 commit into
opencontainers:mainfrom
aojea:netdevices-remove-template
Nov 17, 2026
Merged

kolyshkin merged 1 commit into
opencontainers:mainfrom
aojea:netdevices-remove-template

Conversation

@aojea

@aojea aojea commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Although the Linux kernel expands %d during the RTM_NEWLINK move and rename operation, it does not return the generated interface name in the netlink acknowledgment. Because runtimes must subsequently look up the moved interface in the target network namespace to preserve global permanent IP addresses and bring the interface up, looking up the interface by the literal %d template name fails.

Neither runc, crun, nor youki implements %d template handling, and supporting it in userspace requires breaking the atomic move-and-rename operation into multiple steps with a temporary interface name. Remove the %d template requirement from the specification.

Ref: #1271 (comment)
Ref: opencontainers/runc#5548

Although the Linux kernel expands "%d" during the RTM_NEWLINK move and
rename operation, it does not return the generated interface name in
the netlink acknowledgment. Because runtimes must subsequently look up
the moved interface in the target network namespace to preserve global
permanent IP addresses and bring the interface up, looking up the
interface by the literal "%d" template name fails.

Neither runc, crun, nor youki implements "%d" template handling, and
supporting it in userspace requires breaking the atomic move-and-rename
operation into multiple steps with a temporary interface name. Remove
the "%d" template requirement from the specification.

Signed-off-by: Antonio Ojea <aojea@google.com>

@giuseppe giuseppe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rata rata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @aojea @kolyshkin !

@kolyshkin kolyshkin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin
kolyshkin merged commit 20f948a into opencontainers:main Nov 17, 2026
7 checks passed
@AkihiroSuda AkihiroSuda added this to the v1.4.0 milestone Nov 17, 2026
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.

5 participants