Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
network: fix vhost-user net creation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Eric Ernst committed Aug 17, 2018
1 parent 0bcb32f commit ee1ea36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtcontainers/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee1ea36

Please sign in to comment.