network: Use pointer for VhostUserNetDevice for Attach

Use pointer here since api.VhostUserDevice interface is implemented
by VhostUserNetDevice pointer.

Fixes #446

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2018-06-26 23:30:05 -07:00
parent 2b27ddc738
commit 510b3338d4

View File

@ -280,7 +280,7 @@ func (endpoint *VhostUserEndpoint) Attach(h hypervisor) error {
}
id := hex.EncodeToString(randBytes)
d := drivers.VhostUserNetDevice{
d := &drivers.VhostUserNetDevice{
MacAddress: endpoint.HardAddr,
}
d.SocketPath = endpoint.SocketPath