Documentation
¶
Index ¶
- Variables
- type Binding
- func (*Binding) Descriptor() ([]byte, []int)deprecated
- func (x *Binding) GetAtes() []*Device
- func (x *Binding) GetDuts() []*Device
- func (x *Binding) GetDynamic() bool
- func (x *Binding) GetLinks() []*Link
- func (x *Binding) GetOptions() *Options
- func (*Binding) ProtoMessage()
- func (x *Binding) ProtoReflect() protoreflect.Message
- func (x *Binding) Reset()
- func (x *Binding) String() string
- type Configs
- func (*Configs) Descriptor() ([]byte, []int)deprecated
- func (x *Configs) GetCli() [][]byte
- func (x *Configs) GetCliFile() []string
- func (x *Configs) GetGnmiSetFile() []string
- func (x *Configs) GetGribiFlush() bool
- func (*Configs) ProtoMessage()
- func (x *Configs) ProtoReflect() protoreflect.Message
- func (x *Configs) Reset()
- func (x *Configs) String() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetConfig() *Configs
- func (x *Device) GetGnmi() *Options
- func (x *Device) GetGnoi() *Options
- func (x *Device) GetGnsi() *Options
- func (x *Device) GetGribi() *Options
- func (x *Device) GetHardwareModel() string
- func (x *Device) GetId() string
- func (x *Device) GetIxnetwork() *Options
- func (x *Device) GetName() string
- func (x *Device) GetOptions() *Options
- func (x *Device) GetOtg() *Options
- func (x *Device) GetP4Rt() *Options
- func (x *Device) GetPorts() []*Port
- func (x *Device) GetSoftwareVersion() string
- func (x *Device) GetSsh() *Options
- func (x *Device) GetVendor() proto.Device_Vendor
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Link
- type Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetCertFile() string
- func (x *Options) GetInsecure() bool
- func (x *Options) GetKeyFile() string
- func (x *Options) GetMaxRecvMsgSize() int32
- func (x *Options) GetMutualTls() bool
- func (x *Options) GetPassword() string
- func (x *Options) GetSessionId() int32
- func (x *Options) GetSkipVerify() bool
- func (x *Options) GetTarget() string
- func (x *Options) GetTimeout() int32
- func (x *Options) GetTrustBundleFile() string
- func (x *Options) GetUsername() string
- func (*Options) ProtoMessage()
- func (x *Options) ProtoReflect() protoreflect.Message
- func (x *Options) Reset()
- func (x *Options) String() string
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetId() string
- func (x *Port) GetName() string
- func (x *Port) GetPmd() proto.Port_Pmd
- func (x *Port) GetSpeed() proto.Port_Speed
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
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) GetDynamic ¶
func (*Binding) GetOptions ¶
func (*Binding) ProtoMessage ¶
func (*Binding) ProtoMessage()
func (*Binding) ProtoReflect ¶
func (x *Binding) ProtoReflect() protoreflect.Message
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) GetCliFile ¶
func (*Configs) GetGnmiSetFile ¶
func (*Configs) GetGribiFlush ¶
func (*Configs) ProtoMessage ¶
func (*Configs) ProtoMessage()
func (*Configs) ProtoReflect ¶
func (x *Configs) ProtoReflect() protoreflect.Message
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) GetHardwareModel ¶
func (*Device) GetIxnetwork ¶
func (*Device) GetOptions ¶
func (*Device) GetSoftwareVersion ¶
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
type Link ¶
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) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
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) GetCertFile ¶
func (*Options) GetInsecure ¶
func (*Options) GetKeyFile ¶
func (*Options) GetMaxRecvMsgSize ¶
func (*Options) GetMutualTls ¶
func (*Options) GetPassword ¶
func (*Options) GetSessionId ¶
func (*Options) GetSkipVerify ¶
func (*Options) GetTimeout ¶
func (*Options) GetTrustBundleFile ¶
func (*Options) GetUsername ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
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) GetSpeed ¶
func (x *Port) GetSpeed() proto.Port_Speed
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.