blob: 46fb9c971785aff3bb47c9d4cc40087632f38087 [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
Tinoj Joseph07cc5372022-07-18 22:53:51 +053018import "context"
19
Naveen Sampath04696f72022-06-13 15:19:14 +053020// App Interface
21type App interface {
Tinoj Joseph07cc5372022-07-18 22:53:51 +053022 PortAddInd(context.Context, string, uint32, string)
23 PortDelInd(context.Context, string, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053024 PortUpdateInd(string, string, uint32)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053025 PacketInInd(context.Context, string, string, []byte)
26 PortUpInd(context.Context, string, string)
27 PortDownInd(context.Context, string, string)
28 AddDevice(context.Context, string, string, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053029 DeviceUpInd(string)
30 DeviceDownInd(string)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053031 DelDevice(context.Context, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053032 SetRebootFlag(bool)
Tinoj Joseph07cc5372022-07-18 22:53:51 +053033 ProcessFlowModResultIndication(context.Context, FlowStatus)
Sridhar Ravindra3ec14232024-01-01 19:11:48 +053034 IsFlowDelThresholdReached(context.Context, string, string) bool
Tinoj Joseph07cc5372022-07-18 22:53:51 +053035 DeviceRebootInd(context.Context, string, string, string)
36 DeviceDisableInd(context.Context, string)
37 UpdateMvlanProfilesForDevice(context.Context, string)
38 TriggerPendingProfileDeleteReq(context.Context, string)
39 TriggerPendingMigrateServicesReq(context.Context, string)
Naveen Sampath04696f72022-06-13 15:19:14 +053040}