Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSPDeviceInfo ¶
type OSPDevicesInfo ¶
type OSPDevicesInfo map[string]*OSPDeviceInfo
type OSPMetaData ¶
type OSPMetaData struct {
UUID string `json:"uuid,omitempty"`
AdminPass string `json:"admin_pass,omitempty"`
Name string `json:"name,omitempty"`
LaunchIndex int `json:"launch_index,omitempty"`
AvailabilityZone string `json:"availability_zone,omitempty"`
ProjectID string `json:"project_id,omitempty"`
Devices []OSPMetaDataDevice `json:"devices,omitempty"`
}
OSPMetaData -- Openstack meta_data.json format
type OSPMetaDataDevice ¶
type OSPMetaDataDevice struct {
Vlan int `json:"vlan,omitempty"`
VfTrusted bool `json:"vf_trusted,omitempty"`
Type string `json:"type,omitempty"`
Mac string `json:"mac,omitempty"`
Bus string `json:"bus,omitempty"`
Address string `json:"address,omitempty"`
Tags []string `json:"tags,omitempty"`
}
OSPMetaDataDevice -- Device structure within meta_data.json
type OSPNetwork ¶
type OSPNetwork struct {
ID string `json:"id"`
Type string `json:"type"`
Link string `json:"link"`
NetworkID string `json:"network_id"`
}
OSPNetwork OSP Network metadata
type OSPNetworkData ¶
type OSPNetworkData struct {
Links []OSPNetworkLink `json:"links,omitempty"`
Networks []OSPNetwork `json:"networks,omitempty"`
}
OSPNetworkData OSP Network metadata
type OSPNetworkLink ¶
type OSPNetworkLink struct {
ID string `json:"id"`
VifID string `json:"vif_id,omitempty"`
Type string `json:"type"`
Mtu int `json:"mtu,omitempty"`
EthernetMac string `json:"ethernet_mac_address"`
}
OSPNetworkLink OSP Link metadata
type OpenstackInterface ¶
type OpenstackInterface interface {
CreateOpenstackDevicesInfo() error
CreateOpenstackDevicesInfoFromNodeStatus(*sriovnetworkv1.SriovNetworkNodeState)
DiscoverSriovDevicesVirtual() ([]sriovnetworkv1.InterfaceExt, error)
}
func New ¶
func New(hostManager host.HostManagerInterface) OpenstackInterface
Click to show internal directories.
Click to hide internal directories.