public enum PcepLspStatus extends Enum<PcepLspStatus>
| Enum Constant and Description |
|---|
ACTIVE
Signifies that the LSP is up and carrying traffic.
|
DOWN
Signifies that the LSP is not active.
|
GOING_DOWN
Signifies that the LSP is being torn down, resources are being released.
|
GOING_UP
Signifies that the LSP is being signalled.
|
UP
Signifies that the LSP is signalled.
|
| Modifier and Type | Method and Description |
|---|---|
static PcepLspStatus |
getLspStatusFromTunnelStatus(Tunnel.State tunnelState)
Returns the applicable PCEP LSP status corresponding to ONOS tunnel state.
|
static Tunnel.State |
getTunnelStatusFromLspStatus(PcepLspStatus lspState)
Returns the applicable ONOS tunnel state corresponding to PCEP LSP status.
|
static PcepLspStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PcepLspStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PcepLspStatus DOWN
public static final PcepLspStatus UP
public static final PcepLspStatus ACTIVE
public static final PcepLspStatus GOING_DOWN
public static final PcepLspStatus GOING_UP
public static PcepLspStatus[] values()
for (PcepLspStatus c : PcepLspStatus.values()) System.out.println(c);
public static PcepLspStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static PcepLspStatus getLspStatusFromTunnelStatus(Tunnel.State tunnelState)
tunnelState - ONOS tunnel statepublic static Tunnel.State getTunnelStatusFromLspStatus(PcepLspStatus lspState)
lspState - PCEP LSP status