network: fix insertNetworkDevice()
network: fix insertNetworkDevice()

Since we've implemented sriov support a new helper fillSriovNetworkDevice()
fills in necessary information and returns the updated device map. Return the
updated map from insertNetworkDevice() as well. Also, return proper error when
fillSriovNetworkDevice() fails in insertNetworkDevice().

Signed-off-by: Christian Brauner <48455ab3070520a2d174545c7239d6d0fabd9a83@ubuntu.com>

pcdummy/lxd,erikmack/lxd,stgraber/lxd,Skarlso/lxd,Skarlso/lxd,lxc/lxd,jsavikko/lxd,stgraber/lxd,atxwebs/lxd,lxc/lxd,erikmack/lxd,mjeanson/lxd,lxc/lxd,pcdummy/lxd,lxc/lxd,stgraber/lxd,pcdummy/lxd,hallyn/lxd,erikmack/lxd,jsavikko/lxd,Skarlso/lxd,Skarlso/lxd,stgraber/lxd,atxwebs/lxd,atxwebs/lxd,mjeanson/lxd,lxc/lxd,jsavikko/lxd,hallyn/lxd,hallyn/lxd,hallyn/lxd,hallyn/lxd,lxc/lxd,hallyn/lxd,mjeanson/lxd,stgraber/lxd,stgraber/lxd,stgraber/lxd,atxwebs/lxd,lxc/lxd