blob: d716a94b7941fc533320fe29ed5aa5df462d092c [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 PonSimDeviceState uint8
19
20const (
21 DISCONNECTED_FROM_PON PonSimDeviceState = iota
22 CONNECTED_TO_PON
23 REGISTERED_WITH_OLT
24 CONNECTED_IO_INTERFACE
25)
26
27// Execute state string equivalents
28var PonSimDeviceStateEnum = []string{
29 "DISCONNECTED_FROM_PON",
30 "CONNECTED_TO_PON",
31 "REGISTERED_WITH_OLT",
32 "CONNECTED_IO_INTERFACE",
33}
34
35func (s PonSimDeviceState) String() string {
36 return PonSimDeviceStateEnum[s]
37}