otg

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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) AdvertiseRoutes

func (o *OTG) AdvertiseRoutes(t testing.TB, routes []string)

AdvertiseRoutes advertises routes on the ATE.

func (*OTG) DisableLACPMembers

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

DisableLACPMembers disables lacp member ports on the ATE.

func (*OTG) EnableLACPMembers

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

EnableLACPMembers enables lacp member ports on the ATE.

func (*OTG) FetchCapture

func (o *OTG) FetchCapture(t testing.TB, portName string) []byte

FetchCapture fetches the captured bytes on the specified port.

func (*OTG) FetchConfig

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

FetchConfig fetches config from the ATE.

func (*OTG) GNMIOpts

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

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

func (*OTG) NewConfig

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

NewConfig creates a new OTG config.

func (*OTG) PushConfig

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

PushConfig pushes config to the ATE.

func (*OTG) StartCapture

func (o *OTG) StartCapture(t testing.TB, portNames ...string)

StartCapture starts capturing bytes on the specified ports.

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) StopCapture

func (o *OTG) StopCapture(t testing.TB, portNames ...string)

StopCapture starts capturing bytes on the specified ports.

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

func (*OTG) WithdrawRoutes

func (o *OTG) WithdrawRoutes(t testing.TB, routes []string)

WithdrawRoutes withdraws routes on the ATE.

Jump to

Keyboard shortcuts

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