device: move the interface name check from manager
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 16 Feb 2016 14:07:57 +0000 (15:07 +0100)
committerThomas Haller <thaller@redhat.com>
Wed, 17 Feb 2016 17:43:44 +0000 (18:43 +0100)
commitf9ec7136413d941d7dcafc82bcc0f89e1fd2261f
treebb88d36d0ade85da328f19299091de7a10f0da8c
parentadc9895ebe33389a4ef89a319e9480a510bb160d
device: move the interface name check from manager

We not only want to check the device name when creating a virtual device, but
also when determining if the connection can actually be activated there.

Otherwise the device names will mix up if there's more connections that use
virtual devices of the same type.
src/devices/nm-device.c
src/nm-manager.c