Enum NetworkType
- java.lang.Object
-
- java.lang.Enum<NetworkType>
-
- org.jclouds.openstack.neutron.v2.domain.NetworkType
-
- All Implemented Interfaces:
Serializable
,Comparable<NetworkType>
public enum NetworkType extends Enum<NetworkType>
Enumerates supported Network types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLAT
Used to describe a flat network.GRE
Used to describe a GRE tunnel network.LOCAL
Used to describe a local network.UNRECOGNIZED
Used by jclouds when the service returns an unknown value other than null.VLAN
Used to describe a VLAN network.VXLAN
Used to describe a Virtual Extensible LAN (VXLAN) network.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NetworkType
fromValue(String name)
String
toString()
static NetworkType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL
public static final NetworkType LOCAL
Used to describe a local network.
-
FLAT
public static final NetworkType FLAT
Used to describe a flat network.
-
VLAN
public static final NetworkType VLAN
Used to describe a VLAN network. NetworkSegment might have to be set.
-
VXLAN
public static final NetworkType VXLAN
Used to describe a Virtual Extensible LAN (VXLAN) network. It uses a VLAN-like encapsulation technique to encapsulate MAC-based OSI layer 2 Ethernet frames within layer 4 UDP packets.
-
GRE
public static final NetworkType GRE
Used to describe a GRE tunnel network. A virtual network realized as packets encapsulated using Generic Routing Encapsulation. GRE tunnel packets are routed by the compute node hosts, so GRE tunnels are not associated by the openvswitch plugin with specific physical networks.
-
UNRECOGNIZED
public static final NetworkType UNRECOGNIZED
Used by jclouds when the service returns an unknown value other than null.
-
-
Method Detail
-
values
public static NetworkType[] 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 (NetworkType c : NetworkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<NetworkType>
-
fromValue
public static NetworkType fromValue(String name)
-
-