blob: 811ac81c6b3eec11e5cbf7f2293aabe5a59d1d05 [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
18type PonSimDeviceType uint8
19
20const (
21 OLT PonSimDeviceType = iota
22 ONU
23)
24
25var enum_ponsim_device_types = []string{
26 "OLT",
27 "ONU",
28}
29
30func (t PonSimDeviceType) String() string {
31 return enum_ponsim_device_types[t]
32}