blob: 4d1da8f9ea2c008de53084de5772e121b143c180 [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/**
21 * Enum to provide BMP Message Version.
22 */
23public enum BmpVersion {
24
25 BMP_3(3);
26
27 public final int packetVersion;
28
29 /**
30 * Assign BMP PacketVersion with specified packetVersion.
31 *
32 * @param packetVersion version of BMP
33 */
34 BmpVersion(final int packetVersion) {
35 this.packetVersion = packetVersion;
36 }
37
38 /**
39 * Returns Packet version of BMP Message.
40 *
41 * @return packetVersion
42 */
43 public int getPacketVersion() {
44 return packetVersion;
45 }
46}