blob: b66d986bebf59cf7106df142958340676f4bf745 [file] [log] [blame]
senthil46003d12024-03-21 12:23:42 +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
19
20import org.onosproject.bgpio.protocol.BgpMessage;
21
22/**
23 * Abstraction of an BMP peer down notification message.
24 */
25public abstract class PeerDownNotificationMessage extends BmpMessage {
26
27 public static final int PEERDOWN_NOTIFICATION_HEADER_MIN_LENGTH = 4;
28
29 /**
30 * Returns BMP peer down reason.
31 *
32 * @return BMP peer down reason
33 */
34 public abstract PeerDownReason getReason();
35
36 /**
37 * Returns Bgp message.
38 *
39 * @return Bgp message
40 */
41 public abstract BgpMessage getBgpMessage();
42
43 /**
44 * Returns BMP Peer Header of BMP Message.
45 *
46 * @return BMP Peer Header of BMP Message
47 */
48 public abstract PerPeer getPerPeer();
49
50}