helpers

package
v0.0.0-...-7edc760 Latest Latest
Warning

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

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

Documentation

Overview

Package helpers provides helper APIs to simplify writing FP test cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchOperStatusUPIntfs

func FetchOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, checkInterfacesInBinding bool) []string

FetchOperStatusUPIntfs function uses telemetry to generate a list of all up interfaces. When CheckInterfacesInBinding is set to true, all interfaces that are not defined in binding file are excluded.

func GNMINotifString

func GNMINotifString(n *gpb.Notification) string

GNMINotifString builds a string from a gnmi notification message

func GnmiCLIConfig

func GnmiCLIConfig(t testing.TB, dut *ondatra.DUTDevice, config string)

GnmiCLIConfig sets config built with buildCliConfigRequest.

func ValidateOperStatusUPIntfs

func ValidateOperStatusUPIntfs(t *testing.T, dut *ondatra.DUTDevice, upIntfs []string, timeout time.Duration)

ValidateOperStatusUPIntfs function takes a list of interfaces and validates if they are up. if any of the given interfaces is not up, it fails the test and logs the failed interfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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