Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 1 | package core |
2 | |||||
3 | type PonSimDeviceType uint8 | ||||
4 | |||||
5 | const ( | ||||
6 | OLT PonSimDeviceType = iota | ||||
7 | ONU | ||||
8 | ) | ||||
9 | |||||
10 | var enum_ponsim_device_types = []string{ | ||||
11 | "OLT", | ||||
12 | "ONU", | ||||
13 | } | ||||
14 | |||||
15 | func (t PonSimDeviceType) String() string { | ||||
16 | return enum_ponsim_device_types[t] | ||||
17 | } |