mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
virtcontainers: Make fc.go fit the new API
Make fc.go fit the new API Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
67ce7283bc
commit
2a8af23de6
@ -742,13 +742,15 @@ func (fc *firecracker) fcAddVsock(vs kataVSOCK) error {
|
|||||||
vsockParams := ops.NewPutGuestVsockByIDParams()
|
vsockParams := ops.NewPutGuestVsockByIDParams()
|
||||||
vsockID := "root"
|
vsockID := "root"
|
||||||
ctxID := int64(vs.contextID)
|
ctxID := int64(vs.contextID)
|
||||||
|
udsPath := ""
|
||||||
vsock := &models.Vsock{
|
vsock := &models.Vsock{
|
||||||
GuestCid: &ctxID,
|
GuestCid: &ctxID,
|
||||||
ID: &vsockID,
|
UdsPath: &udsPath,
|
||||||
|
VsockID: &vsockID,
|
||||||
}
|
}
|
||||||
vsockParams.SetID(vsockID)
|
vsockParams.SetID(vsockID)
|
||||||
vsockParams.SetBody(vsock)
|
vsockParams.SetBody(vsock)
|
||||||
_, _, err := fc.client().Operations.PutGuestVsockByID(vsockParams)
|
_, err := fc.client().Operations.PutGuestVsockByID(vsockParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user