dasango

package module
v0.0.0-...-ad841ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2016 License: GPL-3.0 Imports: 6 Imported by: 1

README

dasango

Tools for dealing with DASAN OLT's

Documentation

Index

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 GetOnuId

func GetOnuId(oid string) (id int, err error)

func GetOnuOltId

func GetOnuOltId(oid string) (id int, err error)

Types

type OLT

type OLT struct {
	Name        string
	IPAddress   *net.IPAddr
	Shelf_type  string
	ONUs        []ONU
	SNMPSession *gosnmp.GoSNMP
}

func MakeOLT

func MakeOLT(name string) *OLT

func (*OLT) AddONU

func (o *OLT) AddONU(newonu ONU) []ONU

func (*OLT) Connect

func (o *OLT) Connect() (err error)

func (*OLT) FindONUById

func (o *OLT) FindONUById(olt_id int, onu_id int) (ont *ONU)

func (*OLT) GetONUList

func (o *OLT) GetONUList() (err error)

func (*OLT) GetONURxLevels

func (o *OLT) GetONURxLevels() (onus []ONU, err error)

func (*OLT) ReadONURxLevel

func (olt *OLT) ReadONURxLevel(onu *ONU) (rxlevel float32, err error)

func (*OLT) ResolveIP

func (o *OLT) ResolveIP() (err error)

func (*OLT) SetCommunity

func (o *OLT) SetCommunity(community string)

type ONU

type ONU struct {
	Id          int
	OltId       int
	Serial      string
	RxLevel     float32
	Description string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL