Class 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 Detail

      • NetworkDeviceSpec

        public NetworkDeviceSpec()
        No args constructor for use in serialization
    • 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/*'`
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)