Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 1 | /* |
| 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. |
vinokuma | 926cb3e | 2023-03-29 11:41:06 +0530 | [diff] [blame] | 14 | */ |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 15 | |
| 16 | package intf |
| 17 | |
Akash Soni | ef452f1 | 2024-12-12 18:20:28 +0530 | [diff] [blame^] | 18 | import ( |
| 19 | "context" |
| 20 | "voltha-go-controller/internal/pkg/of" |
| 21 | ) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 22 | |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 23 | // App Interface |
| 24 | type App interface { |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 25 | PortAddInd(context.Context, string, uint32, string) |
| 26 | PortDelInd(context.Context, string, string) |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 27 | PortUpdateInd(string, string, uint32) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 28 | 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 Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 32 | DeviceUpInd(string) |
| 33 | DeviceDownInd(string) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 34 | DelDevice(context.Context, string) |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 35 | SetRebootFlag(bool) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 36 | ProcessFlowModResultIndication(context.Context, FlowStatus) |
Akash Soni | ef452f1 | 2024-12-12 18:20:28 +0530 | [diff] [blame^] | 37 | CheckAndDeactivateService(context.Context, *of.VoltSubFlow, string, string) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 38 | 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 Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 43 | } |