]> git.ipfire.org Git - thirdparty/lxc.git/commit
network: restore old behavior 3415/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 19:14:15 +0000 (21:14 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 May 2020 19:17:48 +0000 (21:17 +0200)
commit717f77f2f32f7331606f2709dbca74e0d680b5ef
treefe02aa99df8fbfc352cf04a45d506f00cebe191d
parentc0bdef23ebbbb5d4ae8ffb9e393997a67209ee74
network: restore old behavior

I introduced a regression: when users didn't specify a specific name via
lxc.net.<idx>.name then the device would retain the random name it received
when we created it. Before we would use the "eth%d" syntax to get the kernel to
assign a fixed name. Restore that behavior.

Closes: #3407.
Fixes: 8bf64b77ac8a ("network: rework network device creation")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c