devices

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 16 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 MockStream added in v1.6.0

type MockStream struct {
	grpc.ServerStream
}

func (*MockStream) Context added in v1.6.0

func (*MockStream) Context() context.Context

func (*MockStream) Send added in v1.6.0

func (*MockStream) Send(ind *openolt.Indication) error

type OltMock

type OltMock struct {
	LastUsedOnuId map[uint32]uint32
	Olt           *devices.OltDevice
	BBSimIp       string
	BBSimPort     string
	BBSimApiPort  string

	Client *openolt.OpenoltClient

	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