ate

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package ate controls automated test equipment (ATE) for ONDATRA tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchGNMI

func FetchGNMI(ctx context.Context, ate binding.ATE) (gpb.GNMIClient, error)

FetchGNMI returns the GNMI client for the Ixia.

func PushTopology

func PushTopology(ctx context.Context, ate binding.ATE, top *Topology) error

PushTopology pushes a topology to an ATE.

func SendBGPGracefulRestart

func SendBGPGracefulRestart(ctx context.Context, ate binding.ATE, peerIDs []uint32, delay time.Duration) error

SendBGPGracefulRestart sends a BGP graceful restart event to BGP peers.

func SendBGPPeerNotification

func SendBGPPeerNotification(ctx context.Context, ate binding.ATE, peerIDs []uint32, code int, subCode int) error

SendBGPPeerNotification sends a notification from BGP peers.

func SetLACPState

func SetLACPState(ctx context.Context, ate binding.ATE, port string, enabled *bool) error

SetLACPState sets the LACP state of a specified interface on the ATE.

func SetPortState

func SetPortState(ctx context.Context, ate binding.ATE, port string, enabled *bool) error

SetPortState sets the state of a specified interface on the ATE.

func StartProtocols

func StartProtocols(ctx context.Context, ate binding.ATE) error

StartProtocols starts control plane protocols on an ATE.

func StartTraffic

func StartTraffic(ctx context.Context, ate binding.ATE, flows []*opb.Flow) error

StartTraffic starts traffic flows on an ATE.

func StopProtocols

func StopProtocols(ctx context.Context, ate binding.ATE) error

StopProtocols stops control protocols on an ATE.

func StopTraffic

func StopTraffic(ctx context.Context, ate binding.ATE) error

StopTraffic stops traffic flows on an ATE.

func UpdateNetworks

func UpdateNetworks(ctx context.Context, ate binding.ATE, top *Topology) error

UpdateNetworks updates network groups in a topology on an ATE on the fly.

func UpdateTopology

func UpdateTopology(ctx context.Context, ate binding.ATE, top *Topology, bgpPeerStateOnly bool) error

UpdateTopology updates a topology on an ATE.

func UpdateTraffic

func UpdateTraffic(ctx context.Context, ate binding.ATE, flows []*opb.Flow) error

UpdateTraffic updates traffic flows an an ATE.

Types

type CfgComponents

type CfgComponents struct {
	Host                 string
	Linecards            []uint64
	Ports                []string
	PortToInterfaces     map[string][]string
	InterfaceToProtocols map[string][]string
}

CfgComponents represents the physical ATE components in use for the session and their association with configured interfaces/protocols.

func (*CfgComponents) String

func (c *CfgComponents) String() string

type OperResult

type OperResult struct {
	Path        string
	Status      OperStatus
	Start       time.Time
	End         time.Time
	OpErr       error
	SessionErrs []*ixweb.Error
	Components  *CfgComponents
}

OperResult represents the status of an operation and the configuration context in which it executed.

func (*OperResult) String

func (o *OperResult) String() string

type OperStatus

type OperStatus string

OperStatus represents the status of a completed IxNetwork operation.

const (

	// OperStatusSuccess indicates a successful operation.
	OperStatusSuccess OperStatus = "success"
	// OperStatusFailure indicates a failed operation.
	OperStatusFailure OperStatus = "failure"
)

type Topology

type Topology struct {
	Interfaces []*opb.InterfaceConfig
	LAGs       []*opb.Lag
}

Topology is an ATE topology.

Jump to

Keyboard shortcuts

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