blob: 7e9e154d1b22731dc8d0335b9abe41f334f94175 [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 mirroring message.
23 */
24public abstract class RouteMirroringMessage extends BmpMessage {
25
26 public static final int ROUTE_MIRRORING_HEADER_MIN_LENGTH = 4;
27
28 /**
29 * Returns Bgp route mirroring type.
30 *
31 * @return Bgp route mirroring type
32 */
33 public abstract MirroringType getMirroringType();
34
35 /**
36 * Returns Bgp route mirroring length.
37 *
38 * @return Bgp route mirroring length
39 */
40 public abstract int getMirroringLength();
41
42 /**
43 * Returns Bgp message.
44 *
45 * @return Bgp message
46 */
47 public abstract BgpMessage getBgpMessage();
48
49 /**
50 * Returns BMP per peer header.
51 *
52 * @return BMP per peer header
53 */
54 public abstract PerPeer getPerPeer();
55
56}