Package org.ovirt.engine.sdk4.types
Enum CloudInitNetworkProtocol
- java.lang.Object
-
- java.lang.Enum<CloudInitNetworkProtocol>
-
- org.ovirt.engine.sdk4.types.CloudInitNetworkProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<CloudInitNetworkProtocol>
public enum CloudInitNetworkProtocol extends Enum<CloudInitNetworkProtocol>
Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init. Protocols supported are cloud-init version dependent. For more information, see http://cloudinit.readthedocs.io/en/latest/topics/network-config.html#network-configuration-sources[Network Configuration Sources]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENI
Legacy protocol.OPENSTACK_METADATA
Successor of the ENI protocol, with support for IPv6 and more.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CloudInitNetworkProtocol
fromValue(String value)
String
value()
static CloudInitNetworkProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static CloudInitNetworkProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENI
public static final CloudInitNetworkProtocol ENI
Legacy protocol. Does not support IPv6. For more information, see http://cloudinit.readthedocs.io/en/latest/topics/network-config-format-eni.html#network-config-eni[Network Configuration ENI (Legacy)]
-
OPENSTACK_METADATA
public static final CloudInitNetworkProtocol OPENSTACK_METADATA
Successor of the ENI protocol, with support for IPv6 and more. This is the default value. For more information, see http://specs.openstack.org/openstack/nova-specs/specs/liberty/implemented/metadata-service-network-info[API: Proxy neutron configuration to guest instance]
-
-
Method Detail
-
values
public static CloudInitNetworkProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CloudInitNetworkProtocol c : CloudInitNetworkProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CloudInitNetworkProtocol valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static CloudInitNetworkProtocol fromValue(String value)
-
-