Documentation ¶
Overview ¶
Package components provides functions to enumerate components from the device.
Index ¶
- func FindActiveComponentsByType(t *testing.T, dut *ondatra.DUTDevice, ...) []string
- 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 FindStandbyControllerCard(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 FindActiveComponentsByType ¶
func FindActiveComponentsByType(t *testing.T, dut *ondatra.DUTDevice, cType oc.E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT) []string
FindActiveComponentsByType finds the list of active components based on hardware type.
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 FindStandbyControllerCard ¶
func FindStandbyControllerCard(t *testing.T, dut *ondatra.DUTDevice, supervisors []string) (string, string)
FindStandbyControllerCard gets a list of two components and finds out the active and standby controller_cards.
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.