Documentation ¶
Overview ¶
Package otg provides an API to Open Traffic Generator.
Index ¶
- type OTG
- func (o *OTG) DisableLACPMembers(t testing.TB, ports ...string)
- func (o *OTG) FetchConfig(t testing.TB) gosnappi.Config
- func (o *OTG) GNMIOpts() *gnmi.Opts
- func (o *OTG) GetCapture(t testing.TB, req gosnappi.CaptureRequest) []byte
- func (o *OTG) GetConfig(t testing.TB) gosnappi.Config
- func (o *OTG) NewConfig(t testing.TB) gosnappi.Config
- func (o *OTG) PushConfig(t testing.TB, cfg gosnappi.Config)
- func (o *OTG) SetControlAction(t testing.TB, action gosnappi.ControlAction)
- func (o *OTG) SetControlState(t testing.TB, state gosnappi.ControlState)
- func (o *OTG) StartProtocols(t testing.TB)
- func (o *OTG) StartTraffic(t testing.TB)
- func (o *OTG) StopProtocols(t testing.TB)
- func (o *OTG) StopTraffic(t testing.TB)
- func (o *OTG) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTG ¶
type OTG struct {
// contains filtered or unexported fields
}
OTG provides the Open Traffic Generator API to an ATE. Tests should not construct this directly; call ate.OTG() instead.
func New ¶
New constructs a new OTG instance. Tests should not call this directly; call ate.OTG() instead.
func (*OTG) DisableLACPMembers ¶
DisableLACPMembers disables lacp member ports on the ATE. Deprecated: Use SetControlState instead.
func (*OTG) FetchConfig ¶
FetchConfig gets the current config. Deprecated: Use GetConfig instead.
func (*OTG) GetCapture ¶ added in v0.1.12
GetCapture gets the results of a port capture.
func (*OTG) NewConfig ¶
NewConfig creates a new OTG config. Deprecated: Use gosnappi.NewConfig directly.
func (*OTG) PushConfig ¶
PushConfig pushes config to the ATE.
func (*OTG) SetControlAction ¶ added in v0.1.11
func (o *OTG) SetControlAction(t testing.TB, action gosnappi.ControlAction)
SetControlAction triggers actions against configured resources.
func (*OTG) SetControlState ¶ added in v0.1.11
func (o *OTG) SetControlState(t testing.TB, state gosnappi.ControlState)
SetControlState sets the operational state of configured resources.
func (*OTG) StartProtocols ¶
StartProtocols starts protocols on the ATE.
func (*OTG) StartTraffic ¶
StartTraffic starts traffic on the ATE.
func (*OTG) StopProtocols ¶
StopProtocols stops protocols on the ATE.
func (*OTG) StopTraffic ¶
StopTraffic stops traffic on the ATE.