Documentation ¶
Overview ¶
Package ate controls automated test equipment (ATE) for ONDATRA tests.
Index ¶
- func FetchGNMI(ctx context.Context, ate binding.ATE) (gpb.GNMIClient, error)
- func PushTopology(ctx context.Context, ate binding.ATE, top *Topology) error
- func SendBGPGracefulRestart(ctx context.Context, ate binding.ATE, peerIDs []uint32, delay time.Duration) error
- func SendBGPPeerNotification(ctx context.Context, ate binding.ATE, peerIDs []uint32, code int, subCode int) error
- func SetLACPState(ctx context.Context, ate binding.ATE, port string, enabled *bool) error
- func SetPortState(ctx context.Context, ate binding.ATE, port string, enabled *bool) error
- func StartProtocols(ctx context.Context, ate binding.ATE) error
- func StartTraffic(ctx context.Context, ate binding.ATE, flows []*opb.Flow) error
- func StopProtocols(ctx context.Context, ate binding.ATE) error
- func StopTraffic(ctx context.Context, ate binding.ATE) error
- func UpdateNetworks(ctx context.Context, ate binding.ATE, top *Topology) error
- func UpdateTopology(ctx context.Context, ate binding.ATE, top *Topology, bgpPeerStateOnly bool) error
- func UpdateTraffic(ctx context.Context, ate binding.ATE, flows []*opb.Flow) error
- type CfgComponents
- type OperResult
- type OperStatus
- type Topology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PushTopology ¶
PushTopology pushes a topology to an ATE.
func SendBGPGracefulRestart ¶
func SendBGPGracefulRestart(ctx context.Context, ate binding.ATE, peerIDs []uint32, delay time.Duration) error
SendBGPGracefulRestart sends a BGP graceful restart event to BGP peers.
func SendBGPPeerNotification ¶
func SendBGPPeerNotification(ctx context.Context, ate binding.ATE, peerIDs []uint32, code int, subCode int) error
SendBGPPeerNotification sends a notification from BGP peers.
func SetLACPState ¶
SetLACPState sets the LACP state of a specified interface on the ATE.
func SetPortState ¶
SetPortState sets the state of a specified interface on the ATE.
func StartProtocols ¶
StartProtocols starts control plane protocols on an ATE.
func StartTraffic ¶
StartTraffic starts traffic flows on an ATE.
func StopProtocols ¶
StopProtocols stops control protocols on an ATE.
func StopTraffic ¶
StopTraffic stops traffic flows on an ATE.
func UpdateNetworks ¶
UpdateNetworks updates network groups in a topology on an ATE on the fly.
Types ¶
type CfgComponents ¶
type CfgComponents struct { Host string Linecards []uint64 Ports []string PortToInterfaces map[string][]string InterfaceToProtocols map[string][]string }
CfgComponents represents the physical ATE components in use for the session and their association with configured interfaces/protocols.
func (*CfgComponents) String ¶
func (c *CfgComponents) String() string
type OperResult ¶
type OperResult struct { Path string Status OperStatus Start time.Time End time.Time OpErr error SessionErrs []*ixweb.Error Components *CfgComponents }
OperResult represents the status of an operation and the configuration context in which it executed.
func (*OperResult) String ¶
func (o *OperResult) String() string
type OperStatus ¶
type OperStatus string
OperStatus represents the status of a completed IxNetwork operation.
const ( // OperStatusSuccess indicates a successful operation. OperStatusSuccess OperStatus = "success" // OperStatusFailure indicates a failed operation. OperStatusFailure OperStatus = "failure" )