Package org.onosproject.net.pi.model
Enum PiPipeconf.ExtensionType
- java.lang.Object
-
- java.lang.Enum<PiPipeconf.ExtensionType>
-
- org.onosproject.net.pi.model.PiPipeconf.ExtensionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PiPipeconf.ExtensionType>
- Enclosing interface:
- PiPipeconf
public static enum PiPipeconf.ExtensionType extends java.lang.Enum<PiPipeconf.ExtensionType>
Type of extension of a protocol-independent pipeline configuration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BMV2_JSON
BMv2 JSON configuration.CPU_PORT_TXT
CPU port file in UTF 8 encoding.P4_INFO_TEXT
The P4Info as returned by the p4c compiler in text format.SPECTRUM_BIN
Mellanox Spectrum configuration binary.STRATUM_FPM_BIN
Stratum Fixed Pipeline Model (FPM) pipeline configuration binary.TOFINO_BIN
Barefoot's Tofino configuration binary.TOFINO_CONTEXT_JSON
Barefoot's Tofino context JSON.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PiPipeconf.ExtensionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PiPipeconf.ExtensionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
P4_INFO_TEXT
public static final PiPipeconf.ExtensionType P4_INFO_TEXT
The P4Info as returned by the p4c compiler in text format.
-
BMV2_JSON
public static final PiPipeconf.ExtensionType BMV2_JSON
BMv2 JSON configuration.
-
SPECTRUM_BIN
public static final PiPipeconf.ExtensionType SPECTRUM_BIN
Mellanox Spectrum configuration binary.
-
TOFINO_BIN
public static final PiPipeconf.ExtensionType TOFINO_BIN
Barefoot's Tofino configuration binary.
-
TOFINO_CONTEXT_JSON
public static final PiPipeconf.ExtensionType TOFINO_CONTEXT_JSON
Barefoot's Tofino context JSON.
-
STRATUM_FPM_BIN
public static final PiPipeconf.ExtensionType STRATUM_FPM_BIN
Stratum Fixed Pipeline Model (FPM) pipeline configuration binary.
-
CPU_PORT_TXT
public static final PiPipeconf.ExtensionType CPU_PORT_TXT
CPU port file in UTF 8 encoding.
-
-
Method Detail
-
values
public static PiPipeconf.ExtensionType[] 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 (PiPipeconf.ExtensionType c : PiPipeconf.ExtensionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PiPipeconf.ExtensionType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-