Documentation ¶
Index ¶
- Constants
- func GetOnuId(oid string) (id int, err error)
- func GetOnuOltId(oid string) (id int, err error)
- type OLT
- func (o *OLT) AddONU(newonu ONU) []ONU
- func (o *OLT) Connect() (err error)
- func (o *OLT) FindONUById(olt_id int, onu_id int) (ont *ONU)
- func (o *OLT) GetONUList() (err error)
- func (o *OLT) GetONURxLevels() (onus []ONU, err error)
- func (olt *OLT) ReadONURxLevel(onu *ONU) (rxlevel float32, err error)
- func (o *OLT) ResolveIP() (err error)
- func (o *OLT) SetCommunity(community string)
- type ONU
Constants ¶
View Source
const ( ONU_SERIAL = "1.3.6.1.4.1.6296.101.23.3.1.1.4" ONU_RX_LEVEL = "1.3.6.1.4.1.6296.101.23.3.1.1.16" )
Variables ¶
This section is empty.
Functions ¶
func GetOnuOltId ¶
Types ¶
type OLT ¶
type OLT struct { Name string IPAddress *net.IPAddr Shelf_type string ONUs []ONU SNMPSession *gosnmp.GoSNMP }
func (*OLT) GetONUList ¶
func (*OLT) GetONURxLevels ¶
func (*OLT) SetCommunity ¶
Click to show internal directories.
Click to hide internal directories.