Documentation
¶
Overview ¶
Package knebind provides an Ondatra binding for KNE devices.
Index ¶
Constants ¶
View Source
const ( // DefaultOTGRequestTimeout is the default timeout for OTG API requests if not specified. DefaultOTGRequestTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶ added in v0.5.0
ValidateConfig checks if the provided config is valid.
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.
Username, Password string
Credentials *creds.Credentials `yaml:"credentials"`
Topology string `yaml:"topology"`
Kubeconfig string `yaml:"kubecfg"`
SkipReset bool `yaml:"skip_reset"`
}
Config contains parameters to configure the KNE binding.
func ParseConfigFile ¶
ParseConfigFile parses a yaml file containing a serialized Config.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package creds contains logic for KNE credentials.
|
Package creds contains logic for KNE credentials. |
|
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.