Documentation
¶
Overview ¶
Package otgutils provides helpers for OTG configuration and telemetry.
Index ¶
- func GetFlowLossPct(t testing.TB, otg *otg.OTG, flowName string, timeout time.Duration) (lossPct float64)
- func GetFlowStats(t testing.TB, otg *otg.OTG, flowName string, timeout time.Duration) (txPackets, rxPackets uint64)
- func LogFlowMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func LogLACPMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func LogLAGMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func LogLLDPMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func LogLLDPNeighborStates(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func LogPortMetrics(t testing.TB, otg *otg.OTG, c gosnappi.Config)
- func WaitForARP(t *testing.T, otg *otg.OTG, c gosnappi.Config, ipType string)
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 ¶
LogFlowMetrics displays the otg flow statistics.
func LogLACPMetrics ¶
LogLACPMetrics is displaying otg lacp stats.
func LogLAGMetrics ¶
LogLAGMetrics is displaying otg lag stats.
func LogLLDPMetrics ¶
LogLLDPMetrics is displaying otg lldp stats.
func LogLLDPNeighborStates ¶
LogLLDPNeighborStates is displaying otg lldp neighbor states.
func LogPortMetrics ¶
LogPortMetrics displays otg port stats.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.