blob: b6f236af901ee4ceb662db2bd2e1b298ff0c42d7 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001/*
2 * Copyright 2017-present Open Networking Foundation
3
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7
8 * http://www.apache.org/licenses/LICENSE-2.0
9
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Stephane Barbarie35595062018-02-08 08:34:39 -050016package core
17
18import (
19 "context"
20 "github.com/google/gopacket"
21)
22
23type PonSimInterface interface {
24 Start(context.Context)
25
26 Stop(context.Context)
27
28 GetAddress() string
29
30 GetPort() int32
31
32 Forward(context.Context, int, gopacket.Packet) error
Jonathan Hart32fe8812018-08-21 17:10:12 -070033
34 SendOut(int, gopacket.Packet)
Stephane Barbarie35595062018-02-08 08:34:39 -050035}