Documentation ¶
Overview ¶
Package components provides functions to enumerate components from the device.
Index ¶
- func FindComponentsByType(t *testing.T, dut *ondatra.DUTDevice, ...) []string
- func FindMatchingStrings(components []string, r *regexp.Regexp) []string
- func FindSWComponentsByType(t *testing.T, dut *ondatra.DUTDevice, ...) []string
- func FindStandbyRP(t *testing.T, dut *ondatra.DUTDevice, supervisors []string) (string, string)
- func GetSubcomponentPath(name string, useNameOnly bool) *tpb.Path
- func OpticalChannelComponentFromPort(t *testing.T, dut *ondatra.DUTDevice, p *ondatra.Port) string
- type Y
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindComponentsByType ¶
func FindComponentsByType(t *testing.T, dut *ondatra.DUTDevice, cType oc.E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT) []string
FindComponentsByType finds the list of components based on hardware type.
func FindMatchingStrings ¶
FindMatchingStrings filters out the components list based on regex pattern.
func FindSWComponentsByType ¶
func FindSWComponentsByType(t *testing.T, dut *ondatra.DUTDevice, cType oc.E_PlatformTypes_OPENCONFIG_SOFTWARE_COMPONENT) []string
FindSWComponentsByType finds the list of SW components based on a type.
func FindStandbyRP ¶
FindStandbyRP gets a list of two components and finds out the active and standby rp.
func GetSubcomponentPath ¶
GetSubcomponentPath creates a gNMI path based on the component name. If useNameOnly is true, returns a path to the specified name instead of a full subcomponent path.
Types ¶
Click to show internal directories.
Click to hide internal directories.