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 | |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 18 | import "context" |
| 19 | |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 20 | // App Interface |
| 21 | type App interface { |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 22 | PortAddInd(context.Context, string, uint32, string) |
| 23 | PortDelInd(context.Context, string, string) |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 24 | PortUpdateInd(string, string, uint32) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 25 | 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 Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 29 | DeviceUpInd(string) |
| 30 | DeviceDownInd(string) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 31 | DelDevice(context.Context, string) |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 32 | SetRebootFlag(bool) |
Tinoj Joseph | 07cc537 | 2022-07-18 22:53:51 +0530 | [diff] [blame] | 33 | ProcessFlowModResultIndication(context.Context, FlowStatus) |
| 34 | DeviceRebootInd(context.Context, string, string, string) |
| 35 | DeviceDisableInd(context.Context, string) |
| 36 | UpdateMvlanProfilesForDevice(context.Context, string) |
| 37 | TriggerPendingProfileDeleteReq(context.Context, string) |
| 38 | TriggerPendingMigrateServicesReq(context.Context, string) |
Naveen Sampath | 04696f7 | 2022-06-13 15:19:14 +0530 | [diff] [blame] | 39 | } |