blob: 91a9f8abc11727c79cdf75a813b739bcb1707f41 [file] [log] [blame]
Naveen Sampath04696f72022-06-13 15:19:14 +05301/*
2* Copyright 2022-present Open Networking Foundation
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
vinokuma926cb3e2023-03-29 11:41:06 +053014 */
Naveen Sampath04696f72022-06-13 15:19:14 +053015
16package intf
17
Akash Sonief452f12024-12-12 18:20:28 +053018import (
19 "context"
20 "voltha-go-controller/internal/pkg/of"
21)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053022
Naveen Sampath04696f72022-06-13 15:19:14 +053023// App Interface
24type App interface {
Tinoj Joseph07cc5372022-07-18 22:53:51 +053025 PortAddInd(context.Context, string, uint32, string)
26 PortDelInd(context.Context, string, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053027 PortUpdateInd(string, string, uint32)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053028 PacketInInd(context.Context, string, string, []byte)
29 PortUpInd(context.Context, string, string)
30 PortDownInd(context.Context, string, string)
31 AddDevice(context.Context, string, string, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053032 DeviceUpInd(string)
33 DeviceDownInd(string)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053034 DelDevice(context.Context, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053035 SetRebootFlag(bool)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053036 ProcessFlowModResultIndication(context.Context, FlowStatus)
Akash Sonief452f12024-12-12 18:20:28 +053037 CheckAndDeactivateService(context.Context, *of.VoltSubFlow, string, string)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053038 DeviceRebootInd(context.Context, string, string, string)
39 DeviceDisableInd(context.Context, string)
40 UpdateMvlanProfilesForDevice(context.Context, string)
41 TriggerPendingProfileDeleteReq(context.Context, string)
42 TriggerPendingMigrateServicesReq(context.Context, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053043}