From ee1ea36d0af23672e792a8f4a36bbe2bbe3f3b30 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Fri, 17 Aug 2018 20:38:38 +0000 Subject: [PATCH] network: fix vhost-user net creation When creating a device structure to be added to the hypervisor, make sure that the device includes the vhost-user type. In particular, for network devices, specificy VhostUserNet. Fixes: #601 Signed-off-by: Eric Ernst --- virtcontainers/network.go | 1 + 1 file changed, 1 insertion(+) diff --git a/virtcontainers/network.go b/virtcontainers/network.go index 3778471982..933092d473 100644 --- a/virtcontainers/network.go +++ b/virtcontainers/network.go @@ -286,6 +286,7 @@ func (endpoint *VhostUserEndpoint) Attach(h hypervisor) error { ID: id, SocketPath: endpoint.SocketPath, MacAddress: endpoint.HardAddr, + Type: config.VhostUserNet, } return h.addDevice(d, vhostuserDev)