blob: 93a94fe035491b9f36d5a9d2b718eed0bb20cbac [file] [log] [blame]
Niraj Dubeya8287192021-03-23 19:54:17 +05301/*
2 * Copyright 2021-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.bgpmonitoring;
18
19/**
20 * Enum to Provide the Different types of BMP messages.
21 */
22public enum BmpType {
23
24 ROUTE_MONITORING((byte) 0x0),
25
26 STATISTICS_REPORT((byte) 0x1),
27
28 PEER_DOWN_NOTIFICATION((byte) 0x2),
29
30 PEER_UP_NOTIFICATION((byte) 0x3),
31
32 INITIATION_MESSAGE((byte) 0x4),
33
34 TERMINATION_MESSAGE((byte) 0x5),
35
36 ROUTE_MIRRORING_MESSAGE((byte) 0x6);
37
38 private final byte value;
39
40 /**
41 * Assign value with the value val as the types of BMP message.
42 *
43 * @param val type of BMP message
44 */
45 BmpType(byte val) {
46 value = val;
47 }
48
49
50 /**
51 * Returns value as type of BMP message.
52 *
53 * @return value type of BMP message
54 */
55 public byte getType() {
56 return value;
57 }
58}