Enum BGPError
- java.lang.Object
-
- java.lang.Enum<BGPError>
-
- org.opendaylight.protocol.bgp.parser.BGPError
-
- All Implemented Interfaces:
Serializable
,Comparable<BGPError>
public enum BGPError extends Enum<BGPError>
Possible errors from implemented RFCs and drafts. Each error consists of error code and error subcode (code/subcode in comments).- See Also:
- BGP Notification Message
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMINISTRATIVE_RESTART
Administrative Reset.ADMINISTRATIVE_SHUTDOWN
Administrative Shutdown.AS_PATH_MALFORMED
Malformed AS_PATH.ATTR_FLAGS_MISSING
Attribute Flags Error.ATTR_LENGTH_ERROR
Attribute Length Error.BAD_BGP_ID
Bad BGP Identifier.BAD_MSG_LENGTH
Bad Message Length.BAD_MSG_TYPE
Bad Message Type.BAD_PEER_AS
Bad Peer AS.CEASE
Cease.CONNECTION_COLLISION_RESOLUTION
Connection Collision Resolution.CONNECTION_NOT_SYNC
Connection Not Synchronized.CONNECTION_REJECTED
Connection Rejected.FSM_ERROR
Finite State Machine Error.HOLD_TIME_NOT_ACC
Unacceptable Hold Time.HOLD_TIMER_EXPIRED
Hold Timer Expired.MALFORMED_ATTR_LIST
Malformed Attribute List.MAX_NUMBER_OF_PREFIXES_REACHED
Maximum Number of Prefixes Reached.NETWORK_NOT_VALID
Invalid Network Field.NEXT_HOP_NOT_VALID
Invalid NEXT_HOP Attribute.OPT_ATTR_ERROR
Optional Attribute Error.OPT_PARAM_NOT_SUPPORTED
Unsupported Optional Parameter.ORIGIN_ATTR_NOT_VALID
Invalid ORIGIN Attribute.OTHER_CONFIGURATION_CHANGE
Other Configuration Change.OUT_OF_RESOURCES
Out of Resources.PEER_DECONFIGURED
Peer De-configured.UNSPECIFIC_HEADER_ERROR
Unspecific header error.UNSPECIFIC_OPEN_ERROR
Unspecific Open Message error, Errata 4493.UNSPECIFIC_UPDATE_ERROR
Unspecific UPDATE error.UNSUPPORTED_CAPABILITY
Unsupported Capability.VERSION_NOT_SUPPORTED
Unsupported Version Number.WELL_KNOWN_ATTR_MISSING
Missing Well-known Attribute.WELL_KNOWN_ATTR_NOT_RECOGNIZED
Unrecognized Well-known Attribute.
-
Field Summary
Fields Modifier and Type Field Description static String
MANDATORY_ATTR_MISSING_MSG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BGPError
forValue(org.opendaylight.yangtools.yang.common.Uint8 code, org.opendaylight.yangtools.yang.common.Uint8 subcode)
@NonNull org.opendaylight.yangtools.yang.common.Uint8
getCode()
@NonNull org.opendaylight.yangtools.yang.common.Uint8
getSubcode()
static BGPError
valueOf(String name)
Returns the enum constant of this type with the specified name.static BGPError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIC_HEADER_ERROR
public static final BGPError UNSPECIFIC_HEADER_ERROR
Unspecific header error. 1/0, Errata 4493.
-
CONNECTION_NOT_SYNC
public static final BGPError CONNECTION_NOT_SYNC
Connection Not Synchronized. 1/1
-
BAD_MSG_LENGTH
public static final BGPError BAD_MSG_LENGTH
Bad Message Length. 1/2
-
BAD_MSG_TYPE
public static final BGPError BAD_MSG_TYPE
Bad Message Type. 1/3
-
UNSPECIFIC_OPEN_ERROR
public static final BGPError UNSPECIFIC_OPEN_ERROR
Unspecific Open Message error, Errata 4493.
-
VERSION_NOT_SUPPORTED
public static final BGPError VERSION_NOT_SUPPORTED
Unsupported Version Number. 2/1
-
BAD_PEER_AS
public static final BGPError BAD_PEER_AS
Bad Peer AS. 2/2
-
BAD_BGP_ID
public static final BGPError BAD_BGP_ID
Bad BGP Identifier. 2/3
-
OPT_PARAM_NOT_SUPPORTED
public static final BGPError OPT_PARAM_NOT_SUPPORTED
Unsupported Optional Parameter. 2/4
-
HOLD_TIME_NOT_ACC
public static final BGPError HOLD_TIME_NOT_ACC
Unacceptable Hold Time. 2/6
-
UNSPECIFIC_UPDATE_ERROR
public static final BGPError UNSPECIFIC_UPDATE_ERROR
Unspecific UPDATE error. 3/0, Errata 4493.
-
MALFORMED_ATTR_LIST
public static final BGPError MALFORMED_ATTR_LIST
Malformed Attribute List. 3/1
-
WELL_KNOWN_ATTR_NOT_RECOGNIZED
public static final BGPError WELL_KNOWN_ATTR_NOT_RECOGNIZED
Unrecognized Well-known Attribute. 3/2
-
WELL_KNOWN_ATTR_MISSING
public static final BGPError WELL_KNOWN_ATTR_MISSING
Missing Well-known Attribute. 3/3
-
ATTR_FLAGS_MISSING
public static final BGPError ATTR_FLAGS_MISSING
Attribute Flags Error. 3/4
-
ATTR_LENGTH_ERROR
public static final BGPError ATTR_LENGTH_ERROR
Attribute Length Error. 3/5
-
ORIGIN_ATTR_NOT_VALID
public static final BGPError ORIGIN_ATTR_NOT_VALID
Invalid ORIGIN Attribute. 3/6
-
NEXT_HOP_NOT_VALID
public static final BGPError NEXT_HOP_NOT_VALID
Invalid NEXT_HOP Attribute. 3/8
-
OPT_ATTR_ERROR
public static final BGPError OPT_ATTR_ERROR
Optional Attribute Error. 3/9
-
NETWORK_NOT_VALID
public static final BGPError NETWORK_NOT_VALID
Invalid Network Field. 3/10
-
AS_PATH_MALFORMED
public static final BGPError AS_PATH_MALFORMED
Malformed AS_PATH. 3/11
-
HOLD_TIMER_EXPIRED
public static final BGPError HOLD_TIMER_EXPIRED
Hold Timer Expired. 4/0
-
FSM_ERROR
public static final BGPError FSM_ERROR
Finite State Machine Error. 5/0
-
CEASE
public static final BGPError CEASE
Cease. 6/0
-
MAX_NUMBER_OF_PREFIXES_REACHED
public static final BGPError MAX_NUMBER_OF_PREFIXES_REACHED
Maximum Number of Prefixes Reached. 6/1
-
ADMINISTRATIVE_SHUTDOWN
public static final BGPError ADMINISTRATIVE_SHUTDOWN
Administrative Shutdown. 6/2
-
PEER_DECONFIGURED
public static final BGPError PEER_DECONFIGURED
Peer De-configured. 6/3
-
ADMINISTRATIVE_RESTART
public static final BGPError ADMINISTRATIVE_RESTART
Administrative Reset. 6/4
-
CONNECTION_REJECTED
public static final BGPError CONNECTION_REJECTED
Connection Rejected. 6/5
-
OTHER_CONFIGURATION_CHANGE
public static final BGPError OTHER_CONFIGURATION_CHANGE
Other Configuration Change. 6/6
-
CONNECTION_COLLISION_RESOLUTION
public static final BGPError CONNECTION_COLLISION_RESOLUTION
Connection Collision Resolution. 6/7
-
OUT_OF_RESOURCES
public static final BGPError OUT_OF_RESOURCES
Out of Resources. 6/8
-
UNSUPPORTED_CAPABILITY
public static final BGPError UNSUPPORTED_CAPABILITY
Unsupported Capability. 2/7
-
-
Field Detail
-
MANDATORY_ATTR_MISSING_MSG
public static final String MANDATORY_ATTR_MISSING_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BGPError[] 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 (BGPError c : BGPError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BGPError 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
-
forValue
public static BGPError forValue(org.opendaylight.yangtools.yang.common.Uint8 code, org.opendaylight.yangtools.yang.common.Uint8 subcode)
-
getCode
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 getCode()
-
getSubcode
public @NonNull org.opendaylight.yangtools.yang.common.Uint8 getSubcode()
-
-