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

Commit

Permalink
network: Use pointer for VhostUserNetDevice for Attach
Browse files Browse the repository at this point in the history
Use pointer here since api.VhostUserDevice interface is implemented
by VhostUserNetDevice pointer.

Fixes #446

Signed-off-by: Archana Shinde <[email protected]>
  • Loading branch information
amshinde committed Jun 27, 2018
1 parent 2b27ddc commit 510b333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 510b333

Please sign in to comment.