@@ -34,7 +34,7 @@ const (
34
34
)
35
35
36
36
// CPUTemplate defines a set of CPU features that are exposed by Firecracker
37
- type CPUTemplate = models.CPUTemplate
37
+ type CPUTemplate models.CPUTemplate
38
38
39
39
// CPUTemplates known by Firecracker. These are passed through directly from the model.
40
40
const (
@@ -52,7 +52,7 @@ type Firecracker interface {
52
52
PutGuestDriveByID (ctx context.Context , driveID string , drive * models.Drive ) (* ops.PutGuestDriveByIDNoContent , error )
53
53
PutGuestVsockByID (ctx context.Context , vsockID string , vsock * models.Vsock ) (* ops.PutGuestVsockByIDCreated , * ops.PutGuestVsockByIDNoContent , error )
54
54
CreateSyncAction (ctx context.Context , info * models.InstanceActionInfo ) (* ops.CreateSyncActionNoContent , error )
55
- PutMmds (ctx context.Context , metadata interface {}) (* ops.PutMmdsCreated , * ops. PutMmdsNoContent , error )
55
+ PutMmds (ctx context.Context , metadata interface {}) (* ops.PutMmdsNoContent , error )
56
56
GetMachineConfig () (* ops.GetMachineConfigOK , error )
57
57
}
58
58
@@ -469,7 +469,6 @@ func (m *Machine) createNetworkInterface(ctx context.Context, iface NetworkInter
469
469
IfaceID : & ifaceID ,
470
470
GuestMac : iface .MacAddress ,
471
471
HostDevName : iface .HostDevName ,
472
- State : models .DeviceStateAttached ,
473
472
AllowMmdsRequests : iface .AllowMDDS ,
474
473
}
475
474
@@ -563,13 +562,10 @@ func (m *Machine) startInstance(ctx context.Context) error {
563
562
564
563
// SetMetadata sets the machine's metadata for MDDS
565
564
func (m * Machine ) SetMetadata (ctx context.Context , metadata interface {}) error {
566
- respcreated , respnocontent , err := m .client .PutMmds (ctx , metadata )
565
+ respnocontent , err := m .client .PutMmds (ctx , metadata )
567
566
568
567
if err == nil {
569
568
var message string
570
- if respcreated != nil {
571
- message = respcreated .Error ()
572
- }
573
569
if respnocontent != nil {
574
570
message = respnocontent .Error ()
575
571
}
0 commit comments