Documentation ¶
Overview ¶
Package knebind provides an Ondatra binding for KNE devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bind ¶
Bind implements the ondatra Binding interface for KNE
func (*Bind) Reserve ¶
func (b *Bind) Reserve(ctx context.Context, tb *opb.Testbed, runTime time.Duration, waitTime time.Duration, partial map[string]string) (*binding.Reservation, error)
Reserve implements the binding Reserve method by finding nodes and links in the topology specified in the config file that match the requested testbed.
type Config ¶
type Config struct { // TODO(team): Deprecate username and password fields. Add option inside credentials field. Username, Password string Credentials *Credentials `yaml:"credentials"` TopoPath string `yaml:"topology"` CLIPath string `yaml:"cli"` KubecfgPath string `yaml:"kubecfg"` SkipReset bool `yaml:"skip_reset"` }
Config contains parameters to configure the KNE binding. They are all exported so they can be unmarhalled from YAML.
func ParseConfigFile ¶
ParseConfigFile parses a yaml file containing a serialized Config.
type Credentials ¶
type Credentials struct { Node map[string]*UserPass `yaml:"node"` Vendor map[tpb.Vendor]*UserPass `yaml:"vendor"` }
Credentials contains credential maps for nodes in the KNE topology.
func (*Credentials) UnmarshalYAML ¶
func (c *Credentials) UnmarshalYAML(unmarshal func(any) error) error
UnmarshalYAML allows the Credentials type to be correctly unmarshaled from yaml.
Directories ¶
Path | Synopsis |
---|---|
Package init installs the Ondatra binding for testing with kne clusters.
|
Package init installs the Ondatra binding for testing with kne clusters. |
Package solver creates solutions from devices and topologies.
|
Package solver creates solutions from devices and topologies. |
Click to show internal directories.
Click to hide internal directories.