otg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package otg provides an API to Open Traffic Generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTG

type OTG struct {
	// contains filtered or unexported fields
}

OTG provides the Open Traffic Generator API to an ATE. Tests should not construct this directly; call ate.OTG() instead.

func New

func New(ate binding.ATE) *OTG

New constructs a new OTG instance. Tests should not call this directly; call ate.OTG() instead.

func (*OTG) DisableLACPMembers

func (o *OTG) DisableLACPMembers(t testing.TB, ports ...string)

DisableLACPMembers disables lacp member ports on the ATE. Deprecated: Use SetControlState instead.

func (*OTG) FetchConfig

func (o *OTG) FetchConfig(t testing.TB) gosnappi.Config

FetchConfig gets the current config. Deprecated: Use GetConfig instead.

func (*OTG) GNMIOpts

func (o *OTG) GNMIOpts() *gnmi.Opts

GNMIOpts returns a new set of options to customize gNMI queries.

func (*OTG) GetCapture added in v0.1.12

func (o *OTG) GetCapture(t testing.TB, req gosnappi.CaptureRequest) []byte

GetCapture gets the results of a port capture.

func (*OTG) GetConfig added in v0.1.12

func (o *OTG) GetConfig(t testing.TB) gosnappi.Config

GetConfig gets the current config.

func (*OTG) NewConfig

func (o *OTG) NewConfig(t testing.TB) gosnappi.Config

NewConfig creates a new OTG config. Deprecated: Use gosnappi.NewConfig directly.

func (*OTG) PushConfig

func (o *OTG) PushConfig(t testing.TB, cfg gosnappi.Config)

PushConfig pushes config to the ATE.

func (*OTG) SetControlAction added in v0.1.11

func (o *OTG) SetControlAction(t testing.TB, action gosnappi.ControlAction)

SetControlAction triggers actions against configured resources.

func (*OTG) SetControlState added in v0.1.11

func (o *OTG) SetControlState(t testing.TB, state gosnappi.ControlState)

SetControlState sets the operational state of configured resources.

func (*OTG) StartProtocols

func (o *OTG) StartProtocols(t testing.TB)

StartProtocols starts protocols on the ATE.

func (*OTG) StartTraffic

func (o *OTG) StartTraffic(t testing.TB)

StartTraffic starts traffic on the ATE.

func (*OTG) StopProtocols

func (o *OTG) StopProtocols(t testing.TB)

StopProtocols stops protocols on the ATE.

func (*OTG) StopTraffic

func (o *OTG) StopTraffic(t testing.TB)

StopTraffic stops traffic on the ATE.

func (*OTG) String

func (o *OTG) String() string

Jump to

Keyboard shortcuts

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