binding

package
v0.0.0-...-56ce121 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_binding_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Duts []*Device `protobuf:"bytes,1,rep,name=duts,proto3" json:"duts,omitempty"`
	Ates []*Device `protobuf:"bytes,2,rep,name=ates,proto3" json:"ates,omitempty"`
	// Dial options across all devices, unless overridden by the device.
	Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// Enable dynamic solving of this binding.
	Dynamic bool `protobuf:"varint,4,opt,name=dynamic,proto3" json:"dynamic,omitempty"`
	// Links only need if dynamic solving is enabled.
	Links []*Link `protobuf:"bytes,5,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

A binding configuration.

func (*Binding) Descriptor deprecated

func (*Binding) Descriptor() ([]byte, []int)

Deprecated: Use Binding.ProtoReflect.Descriptor instead.

func (*Binding) GetAtes

func (x *Binding) GetAtes() []*Device

func (*Binding) GetDuts

func (x *Binding) GetDuts() []*Device

func (*Binding) GetDynamic

func (x *Binding) GetDynamic() bool
func (x *Binding) GetLinks() []*Link

func (*Binding) GetOptions

func (x *Binding) GetOptions() *Options

func (*Binding) ProtoMessage

func (*Binding) ProtoMessage()

func (*Binding) ProtoReflect

func (x *Binding) ProtoReflect() protoreflect.Message

func (*Binding) Reset

func (x *Binding) Reset()

func (*Binding) String

func (x *Binding) String() string

type Configs

type Configs struct {

	// Raw device config
	Cli [][]byte `protobuf:"bytes,1,rep,name=cli,proto3" json:"cli,omitempty"`
	// Path to file containing raw device config
	CliFile []string `protobuf:"bytes,2,rep,name=cli_file,json=cliFile,proto3" json:"cli_file,omitempty"`
	// Path to a file containing gNMI SetRequest as text-formatted proto.
	GnmiSetFile []string `protobuf:"bytes,3,rep,name=gnmi_set_file,json=gnmiSetFile,proto3" json:"gnmi_set_file,omitempty"`
	// Whether to flush gRIBI.  If true, this will send a FlushRequest for all
	// network instances and overriding the election ID.
	GribiFlush bool `protobuf:"varint,4,opt,name=gribi_flush,json=gribiFlush,proto3" json:"gribi_flush,omitempty"`
	// contains filtered or unexported fields
}

Config for resetting the device before the test run.

func (*Configs) Descriptor deprecated

func (*Configs) Descriptor() ([]byte, []int)

Deprecated: Use Configs.ProtoReflect.Descriptor instead.

func (*Configs) GetCli

func (x *Configs) GetCli() [][]byte

func (*Configs) GetCliFile

func (x *Configs) GetCliFile() []string

func (*Configs) GetGnmiSetFile

func (x *Configs) GetGnmiSetFile() []string

func (*Configs) GetGribiFlush

func (x *Configs) GetGribiFlush() bool

func (*Configs) ProtoMessage

func (*Configs) ProtoMessage()

func (*Configs) ProtoReflect

func (x *Configs) ProtoReflect() protoreflect.Message

func (*Configs) Reset

func (x *Configs) Reset()

func (*Configs) String

func (x *Configs) String() string

type Device

type Device struct {

	// Device ID as it appears in the testbed.
	// Set this value if and only dynamic solving is disabled.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The actual device hostname to be used for the binding.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Dial options across all protocols of this device, unless
	// overrideen by individual protocols.
	Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// Port bindings for this device.
	Ports []*Port `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"`
	// Configs to apply to device after binding
	Config *Configs `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`
	// Dial options for SSH (DUT only).
	Ssh *Options `protobuf:"bytes,11,opt,name=ssh,proto3" json:"ssh,omitempty"`
	// Dial options for gNMI (DUT only).
	Gnmi *Options `protobuf:"bytes,12,opt,name=gnmi,proto3" json:"gnmi,omitempty"`
	// Dial options for gNOI (DUT only).
	Gnoi *Options `protobuf:"bytes,13,opt,name=gnoi,proto3" json:"gnoi,omitempty"`
	// Dial options for gNSI (DUT only).
	Gnsi *Options `protobuf:"bytes,14,opt,name=gnsi,proto3" json:"gnsi,omitempty"`
	// Dial options for gRIBI (DUT only).
	Gribi *Options `protobuf:"bytes,15,opt,name=gribi,proto3" json:"gribi,omitempty"`
	// Dial options for P4RT (DUT only).
	P4Rt *Options `protobuf:"bytes,16,opt,name=p4rt,proto3" json:"p4rt,omitempty"`
	// Dial options for IxNetwork (ATE only).
	Ixnetwork *Options `protobuf:"bytes,17,opt,name=ixnetwork,proto3" json:"ixnetwork,omitempty"`
	// Dial options for OTG Ixia-C (HW Only).
	Otg *Options `protobuf:"bytes,18,opt,name=otg,proto3" json:"otg,omitempty"`
	// Vendor of the device.
	Vendor proto.Device_Vendor `protobuf:"varint,19,opt,name=vendor,proto3,enum=ondatra.Device_Vendor" json:"vendor,omitempty"`
	// Hardware models of the device.
	HardwareModel string `protobuf:"bytes,20,opt,name=hardware_model,json=hardwareModel,proto3" json:"hardware_model,omitempty"`
	// Software version of the device.
	SoftwareVersion string `protobuf:"bytes,21,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	// contains filtered or unexported fields
}

A device binding.

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetConfig

func (x *Device) GetConfig() *Configs

func (*Device) GetGnmi

func (x *Device) GetGnmi() *Options

func (*Device) GetGnoi

func (x *Device) GetGnoi() *Options

func (*Device) GetGnsi

func (x *Device) GetGnsi() *Options

func (*Device) GetGribi

func (x *Device) GetGribi() *Options

func (*Device) GetHardwareModel

func (x *Device) GetHardwareModel() string

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetIxnetwork

func (x *Device) GetIxnetwork() *Options

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOptions

func (x *Device) GetOptions() *Options

func (*Device) GetOtg

func (x *Device) GetOtg() *Options

func (*Device) GetP4Rt

func (x *Device) GetP4Rt() *Options

func (*Device) GetPorts

func (x *Device) GetPorts() []*Port

func (*Device) GetSoftwareVersion

func (x *Device) GetSoftwareVersion() string

func (*Device) GetSsh

func (x *Device) GetSsh() *Options

func (*Device) GetVendor

func (x *Device) GetVendor() proto.Device_Vendor

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string
type Link struct {
	A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // First port in the format "<device-name>:<port-name>".
	B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` // Second port in the format "<device-name>:<port-name>".
	// contains filtered or unexported fields
}

Link between two ports. Links are only relevant if dynamic solving is enabled.

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetA

func (x *Link) GetA() string

func (*Link) GetB

func (x *Link) GetB() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Options

type Options struct {

	// This is the dial target, typically formatted as "hostname:port".
	// If not set, it will use the device name and the default port for
	// the protocol.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// Use plain HTTP/2 and omit TLS (gRPC only).
	Insecure bool `protobuf:"varint,2,opt,name=insecure,proto3" json:"insecure,omitempty"`
	// When using TLS, skip certificate verification (gRPC and HTTP).
	SkipVerify bool `protobuf:"varint,3,opt,name=skip_verify,json=skipVerify,proto3" json:"skip_verify,omitempty"`
	// The username for authentication.
	Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	// The password for authentication.
	Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	// The session_id for ATE REST API session id
	SessionId int32 `protobuf:"varint,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// gRPC request timeout (second)
	Timeout int32 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// gRPC dial option to set the maximum recv message size in bytes.
	MaxRecvMsgSize int32 `protobuf:"varint,8,opt,name=max_recv_msg_size,json=maxRecvMsgSize,proto3" json:"max_recv_msg_size,omitempty"`
	// When using TLS, enable mutual certificate verification (gRPC)
	MutualTls bool `protobuf:"varint,9,opt,name=mutual_tls,json=mutualTls,proto3" json:"mutual_tls,omitempty"`
	// Trust bundle file: a *.pem file that contains one or more certificates (root and intermediate CAs)
	TrustBundleFile string `protobuf:"bytes,10,opt,name=trust_bundle_file,json=trustBundleFile,proto3" json:"trust_bundle_file,omitempty"`
	// Certificate file path : a *.pem file that is signed by root or intermediate CA
	CertFile string `protobuf:"bytes,11,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty"`
	// Key file Path: a *.pem file that contains a private key
	KeyFile string `protobuf:"bytes,12,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"`
	// contains filtered or unexported fields
}

Dial options.

func (*Options) Descriptor deprecated

func (*Options) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetCertFile

func (x *Options) GetCertFile() string

func (*Options) GetInsecure

func (x *Options) GetInsecure() bool

func (*Options) GetKeyFile

func (x *Options) GetKeyFile() string

func (*Options) GetMaxRecvMsgSize

func (x *Options) GetMaxRecvMsgSize() int32

func (*Options) GetMutualTls

func (x *Options) GetMutualTls() bool

func (*Options) GetPassword

func (x *Options) GetPassword() string

func (*Options) GetSessionId

func (x *Options) GetSessionId() int32

func (*Options) GetSkipVerify

func (x *Options) GetSkipVerify() bool

func (*Options) GetTarget

func (x *Options) GetTarget() string

func (*Options) GetTimeout

func (x *Options) GetTimeout() int32

func (*Options) GetTrustBundleFile

func (x *Options) GetTrustBundleFile() string

func (*Options) GetUsername

func (x *Options) GetUsername() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

type Port

type Port struct {

	// Port ID as it appears in the testbed.
	// Set this value if and only dynamic solving is disabled.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The actual port name to be used for the binding.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Speed of the port.
	Speed proto.Port_Speed `protobuf:"varint,3,opt,name=speed,proto3,enum=ondatra.Port_Speed" json:"speed,omitempty"`
	// PMD type of the port.
	Pmd proto.Port_Pmd `protobuf:"varint,4,opt,name=pmd,proto3,enum=ondatra.Port_Pmd" json:"pmd,omitempty"`
	// contains filtered or unexported fields
}

Port binding.

func (*Port) Descriptor deprecated

func (*Port) Descriptor() ([]byte, []int)

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetId

func (x *Port) GetId() string

func (*Port) GetName

func (x *Port) GetName() string

func (*Port) GetPmd

func (x *Port) GetPmd() proto.Port_Pmd

func (*Port) GetSpeed

func (x *Port) GetSpeed() proto.Port_Speed

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

func (x *Port) ProtoReflect() protoreflect.Message

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

Jump to

Keyboard shortcuts

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