Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCmd ¶
type ConfigCmd struct {
Path string `kong:"arg,type='existingFile',help='Path to configuration file'"`
DryRun bool `kong:"optional,help='Perform a dry run of the configuration'"`
}
ConfigCmd can configure a fabric per a pre-defined configuration file.
type ConfigFile ¶
type ConfigFile struct {
Version string
Metadata struct {
Name string
}
Options []Option `yaml:",omitempty"`
Devices []Device
}
ConfigFile is the top-level structure
type Device ¶
type Device struct {
ID int32
Metadata struct {
Name string
}
Domains []Domain
Endpoints []uint8 `yaml:",flow"`
}
Device referes to a Switchtec device. It can have a series of Domains and any number of End-Points.
type Domain ¶
type Domain struct {
// Name identifies the Domain name. Domain names can be shared across different
// devices or unique to a single Device.
Name string
// Port is the Upstream Port (USP) of the Domain. End-points are bound to
// this port.
Port uint8
}
Domain referes to the Host Virtualization Domain.
Click to show internal directories.
Click to hide internal directories.