dut

package
v0.0.0-...-195271a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseSshClient

func CloseSshClient(t *testing.T, c *SshClient)

func DumpGnmiConfig

func DumpGnmiConfig(t *testing.T, msg string, s ygot.GoStruct)

func ExecSshCmd

func ExecSshCmd(t *testing.T, c *SshClient, cmd string, logIO bool) (string, error)

func GnmiDelete

func GnmiDelete[T ygot.GoStruct](g *GnmiClient, q ygnmi.ConfigQuery[T])

TODO: originally T was supposed to by 'any'

func GnmiGet

func GnmiGet[T ygot.GoStruct](g *GnmiClient, q ygnmi.SingletonQuery[T]) T

TODO: originally T was supposed to by 'any'

func GnmiReplace

func GnmiReplace[T ygot.GoStruct](g *GnmiClient, q ygnmi.ConfigQuery[T], val T)

TODO: originally T was supposed to by 'any'

Types

type DutApi

type DutApi struct {
	// contains filtered or unexported fields
}

func NewDutApi

func NewDutApi(t *testing.T, dc *testconfig.DutConfig) *DutApi

func (*DutApi) ExecSshCmd

func (d *DutApi) ExecSshCmd(cmd string) (string, error)

func (*DutApi) PushSshConfig

func (d *DutApi) PushSshConfig(cfg string) (string, error)

func (*DutApi) SetSshConfig

func (d *DutApi) SetSshConfig(setCfg string, unsetCfg string) func()

type GnmiClient

type GnmiClient struct {
	// contains filtered or unexported fields
}

func NewGnmiClient

func NewGnmiClient(d *DutApi) (*GnmiClient, error)

type SshClient

type SshClient struct {
	// contains filtered or unexported fields
}

func NewSshClient

func NewSshClient(t *testing.T, location string, username string, password string) (*SshClient, error)

Directories

Path Synopsis
Package gnmi is a generated package which contains definitions of structs which represent a YANG schema.
Package gnmi is a generated package which contains definitions of structs which represent a YANG schema.
acl
Package acl is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package acl is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
ateflow
Package ateflow is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package ateflow is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
definedsets
Package definedsets is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package definedsets is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
gnmipath
Package gnmipath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package gnmipath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
interfaces
Package interfaces is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package interfaces is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
keychain
Package keychain is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package keychain is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
lacp
Package lacp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lacp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
lldp
Package lldp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lldp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
networkinstance
Package networkinstance is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package networkinstance is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
platform
Package platform is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package platform is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
qos
Package qos is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package qos is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
routingpolicy
Package routingpolicy is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package routingpolicy is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
sampling
Package sampling is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package sampling is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
system
Package system is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package system is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
terminaldevice
Package terminaldevice is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package terminaldevice is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.

Jump to

Keyboard shortcuts

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