[VOL-4756] Cleanup TODO context
Change-Id: I21d5ec8cc015154bc893e54c652d31562d8da5d9
diff --git a/internal/pkg/intf/appif.go b/internal/pkg/intf/appif.go
index 76ea4d4..8ad364e 100644
--- a/internal/pkg/intf/appif.go
+++ b/internal/pkg/intf/appif.go
@@ -15,23 +15,25 @@
package intf
+import "context"
+
// App Interface
type App interface {
- PortAddInd(string, uint32, string)
- PortDelInd(string, string)
+ PortAddInd(context.Context, string, uint32, string)
+ PortDelInd(context.Context, string, string)
PortUpdateInd(string, string, uint32)
- PacketInInd(string, string, []byte)
- PortUpInd(string, string)
- PortDownInd(string, string)
- AddDevice(string, string, string)
+ PacketInInd(context.Context, string, string, []byte)
+ PortUpInd(context.Context, string, string)
+ PortDownInd(context.Context, string, string)
+ AddDevice(context.Context, string, string, string)
DeviceUpInd(string)
DeviceDownInd(string)
- DelDevice(string)
+ DelDevice(context.Context, string)
SetRebootFlag(bool)
- ProcessFlowModResultIndication(FlowStatus)
- DeviceRebootInd(string, string, string)
- DeviceDisableInd(string)
- UpdateMvlanProfilesForDevice(string)
- TriggerPendingProfileDeleteReq(string)
- TriggerPendingMigrateServicesReq(string)
+ ProcessFlowModResultIndication(context.Context, FlowStatus)
+ DeviceRebootInd(context.Context, string, string, string)
+ DeviceDisableInd(context.Context, string)
+ UpdateMvlanProfilesForDevice(context.Context, string)
+ TriggerPendingProfileDeleteReq(context.Context, string)
+ TriggerPendingMigrateServicesReq(context.Context, string)
}
diff --git a/internal/pkg/intf/vpagent.go b/internal/pkg/intf/vpagent.go
index f255d13..094c58b 100644
--- a/internal/pkg/intf/vpagent.go
+++ b/internal/pkg/intf/vpagent.go
@@ -45,7 +45,7 @@
// IVPClient interface
type IVPClient interface {
ChangeEvent(*ofp.ChangeEvent) error
- PacketIn(*ofp.PacketIn)
+ PacketIn(context.Context, *ofp.PacketIn)
ConnectInd(cxt context.Context, DiscType DiscoveryType)
Stop()
}
@@ -59,7 +59,7 @@
// IVPClientAgent interface
type IVPClientAgent interface {
AddNewDevice(cfg *VPClientCfg)
- DelDevice(id string)
+ DelDevice(cntx context.Context, id string)
IsRebootInProgressForDevice(device string) bool
// RebootInd(string, string, string)
IsBlockedDevice(string) bool