mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-02 02:02:24 +00:00
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 <eric.ernst@intel.com>
This commit is contained in:
parent
0bcb32f704
commit
ee1ea36d0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user