devices

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiConnect

func ApiConnect(ip string, port string) (bbsim.BBSimClient, *grpc.ClientConn)

func Connect

func Connect(ip string, port string) (openolt.OpenoltClient, *grpc.ClientConn)

TODO Move in a different file

func ValidateAndClose

func ValidateAndClose(olt *OltMock)

Types

type OltMock

type OltMock struct {
	Olt          *devices.OltDevice
	BBSimIp      string
	BBSimPort    string
	BBSimApiPort string

	TargetOnus    int
	CompletedOnus int // Number of ONUs that have received a DHCPAck
	// contains filtered or unexported fields
}

func (*OltMock) Start

func (o *OltMock) Start()

trigger an enable call and start the same listeners on the gRPC stream that VOLTHA would create this method is blocking

Jump to

Keyboard shortcuts

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