Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // MACAddress is the network interface's hardware MAC address // (e.g. "aa:bb:cc:dd:ee:ff"). MACAddress string // CIDR of the network, in 123.45.67.89/24 format. CIDR string // NetworkName is juju-internal name of the network. NetworkName string // ProviderId is a provider-specific network id. ProviderId Id // VLANTag needs to be between 1 and 4094 for VLANs and 0 for // normal networks. It's defined by IEEE 802.1Q standard. VLANTag int // InterfaceName is the raw OS-specific network device name (e.g. // "eth1", even for a VLAN eth1.42 virtual interface). InterfaceName string // IsVirtual is true when the interface is a virtual device, as // opposed to a physical device (e.g. a VLAN or a network alias) IsVirtual bool // Disabled is true when the interface needs to be disabled on the // machine, e.g. not to configure it. Disabled bool }
Info describes a single network interface available on an instance. For providers that support networks, this will be available at StartInstance() time.
func (*Info) ActualInterfaceName ¶
ActualInterfaceName returns raw interface name for raw interface (e.g. "eth0") and virtual interface name for virtual interface (e.g. "eth0.42")
Click to show internal directories.
Click to hide internal directories.