Class NetworkDeviceSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.NetworkDeviceSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NetworkDeviceSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NetworkDeviceSpec defines the network configuration for a virtual machine's network device.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkDeviceSpec()No args constructor for use in serializationNetworkDeviceSpec(List<AddressesFromPool> addressesFromPools, String gateway, List<String> ipAddrs, List<String> nameservers, String networkName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkDeviceSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<AddressesFromPool>getAddressesFromPools()addressesFromPools is a list of references to IP pool types and instances which are handled by an external controller. addressesFromPool configurations provided via addressesFromPools defer IP address assignment to an external controller.StringgetGateway()gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.List<String>getIpAddrs()ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24.List<String>getNameservers()nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim.StringgetNetworkName()networkName is the name of the vSphere network or port group to which the network device will be connected, for example, port-group-1.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAddressesFromPools(List<AddressesFromPool> addressesFromPools)addressesFromPools is a list of references to IP pool types and instances which are handled by an external controller. addressesFromPool configurations provided via addressesFromPools defer IP address assignment to an external controller.voidsetGateway(String gateway)gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.voidsetIpAddrs(List<String> ipAddrs)ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24.voidsetNameservers(List<String> nameservers)nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim.voidsetNetworkName(String networkName)networkName is the name of the vSphere network or port group to which the network device will be connected, for example, port-group-1.NetworkDeviceSpecBuildertoBuilder()
-
-
-
Method Detail
-
getAddressesFromPools
public List<AddressesFromPool> getAddressesFromPools()
addressesFromPools is a list of references to IP pool types and instances which are handled by an external controller. addressesFromPool configurations provided via addressesFromPools defer IP address assignment to an external controller. IP addresses provided via ipAddrs, however, are intended to allow explicit assignment of a machine's IP address. If both addressesFromPool and ipAddrs are empty or not defined, DHCP will assign an IP address. If both ipAddrs and addressesFromPools are defined, the IP addresses associated with ipAddrs will be applied first followed by IP addresses from addressesFromPools.
-
setAddressesFromPools
public void setAddressesFromPools(List<AddressesFromPool> addressesFromPools)
addressesFromPools is a list of references to IP pool types and instances which are handled by an external controller. addressesFromPool configurations provided via addressesFromPools defer IP address assignment to an external controller. IP addresses provided via ipAddrs, however, are intended to allow explicit assignment of a machine's IP address. If both addressesFromPool and ipAddrs are empty or not defined, DHCP will assign an IP address. If both ipAddrs and addressesFromPools are defined, the IP addresses associated with ipAddrs will be applied first followed by IP addresses from addressesFromPools.
-
getGateway
public String getGateway()
gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.
-
setGateway
public void setGateway(String gateway)
gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.
-
getIpAddrs
public List<String> getIpAddrs()
ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24. IP addresses provided via ipAddrs are intended to allow explicit assignment of a machine's IP address. IP pool configurations provided via addressesFromPool, however, defer IP address assignment to an external controller. If both addressesFromPool and ipAddrs are empty or not defined, DHCP will be used to assign an IP address. If both ipAddrs and addressesFromPools are defined, the IP addresses associated with ipAddrs will be applied first followed by IP addresses from addressesFromPools.
-
setIpAddrs
public void setIpAddrs(List<String> ipAddrs)
ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24. IP addresses provided via ipAddrs are intended to allow explicit assignment of a machine's IP address. IP pool configurations provided via addressesFromPool, however, defer IP address assignment to an external controller. If both addressesFromPool and ipAddrs are empty or not defined, DHCP will be used to assign an IP address. If both ipAddrs and addressesFromPools are defined, the IP addresses associated with ipAddrs will be applied first followed by IP addresses from addressesFromPools.
-
getNameservers
public List<String> getNameservers()
nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim. If DHCP is not the source of IP addresses for this network device, nameservers should include a valid nameserver.
-
setNameservers
public void setNameservers(List<String> nameservers)
nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim. If DHCP is not the source of IP addresses for this network device, nameservers should include a valid nameserver.
-
getNetworkName
public String getNetworkName()
networkName is the name of the vSphere network or port group to which the network device will be connected, for example, port-group-1. When not provided, the vCenter API will attempt to select a default network. The available networks (port groups) can be listed using `govc ls 'network/*'`
-
setNetworkName
public void setNetworkName(String networkName)
networkName is the name of the vSphere network or port group to which the network device will be connected, for example, port-group-1. When not provided, the vCenter API will attempt to select a default network. The available networks (port groups) can be listed using `govc ls 'network/*'`
-
edit
public NetworkDeviceSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>
-
toBuilder
public NetworkDeviceSpecBuilder toBuilder()
-
-