Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrOnLocalOnlyIPAddr ¶
ErrOnLocalOnlyIPAddr returns an error if the provided IP address is accessible only on the VM's guest OS.
Types ¶
type NetworkStatus ¶
type NetworkStatus struct { // Connected is a flag that indicates whether this network is currently // connected to the VM. Connected bool `json:"connected,omitempty"` // IPAddrs is one or more IP addresses reported by vm-tools. // +optional IPAddrs []string `json:"ipAddrs,omitempty"` // MACAddr is the MAC address of the network device. MACAddr string `json:"macAddr"` // NetworkName is the name of the network. // +optional NetworkName string `json:"networkName,omitempty"` }
NetworkStatus provides information about one of a VM's networks.
func GetNetworkStatus ¶
func GetNetworkStatus( ctx context.Context, client *vim25.Client, moRef types.ManagedObjectReference) ([]NetworkStatus, error)
GetNetworkStatus returns the network information for the specified VM.
Click to show internal directories.
Click to hide internal directories.