blob: 4a96697ce3bdd036a0c0e309d98f279f11a127cf [file] [log] [blame]
senthil7ed52c5b2024-03-21 21:34:51 +05301/*
2 * Copyright 2024-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
19import org.onosproject.bgpio.protocol.BgpMessage;
20
21/**
22 * Abstraction of an BMP route monitoring message.
23 */
24public abstract class RouteMonitoringMessage extends BmpMessage {
25
26 public static final int ROUTE_MONITORING_HEADER_MIN_LENGTH = 19;
27
28 /**
29 * Returns Bgp message.
30 *
31 * @return Bgp message
32 */
33 public abstract BgpMessage getBgpMessage();
34
35 /**
36 * Returns BMP per peer header.
37 *
38 * @return BMP per peer header
39 */
40 public abstract PerPeer getPerPeer();
41
42}