otgutils

package
v0.0.0-...-4d6df34 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package otgutils provides helpers for OTG configuration and telemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlowLossPct

func GetFlowLossPct(t testing.TB, otg *otg.OTG, flowName string, timeout time.Duration) (lossPct float64)

GetFlowLossPct checks to see if all the flows are completely stopped and returns the loss percentage for the given flow

func GetFlowStats

func GetFlowStats(t testing.TB, otg *otg.OTG, flowName string, timeout time.Duration) (txPackets, rxPackets uint64)

GetFlowStats checks to see if all the flows are completely stopped and returns tx and rx packets for the given flow

func LogFlowMetrics

func LogFlowMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogFlowMetrics displays the otg flow statistics.

func LogLACPMetrics

func LogLACPMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogLACPMetrics is displaying otg lacp stats.

func LogLAGMetrics

func LogLAGMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogLAGMetrics is displaying otg lag stats.

func LogLLDPMetrics

func LogLLDPMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogLLDPMetrics is displaying otg lldp stats.

func LogLLDPNeighborStates

func LogLLDPNeighborStates(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogLLDPNeighborStates is displaying otg lldp neighbor states.

func LogPortMetrics

func LogPortMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)

LogPortMetrics displays otg port stats.

func WaitForARP

func WaitForARP(t *testing.T, otg *otg.OTG, c gosnappi.Config, ipType string)

WaitForARP waits for ARP to resolve on all OTG interfaces for a given ipType, which is either "IPv4" or "IPv6".

Types

This section is empty.

Jump to

Keyboard shortcuts

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