blob: 794b6e9fb982072c140e7668094449a11f27f9a0 [file] [log] [blame]
Priyanka B0bee1f82015-10-13 15:39:49 +05301/*
2 * Copyright 2015 Open Networking Laboratory
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 */
16package org.onosproject.bgpio.protocol;
17
18import java.util.LinkedList;
19
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053020import org.onosproject.bgpio.types.BgpValueType;
Jonathan Hart317f4762015-11-09 16:05:36 -080021import org.onosproject.bgpio.protocol.linkstate.NodeDescriptors;
Priyanka B0bee1f82015-10-13 15:39:49 +053022
23/**
24 * Abstraction of an entity providing BGP-LS Prefix NLRI.
25 */
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053026public interface BgpPrefixLSNlri extends BgpLSNlri {
Priyanka B0bee1f82015-10-13 15:39:49 +053027 /**
28 * Returns local node descriptors.
29 *
30 * @return local node descriptors
31 */
32 NodeDescriptors getLocalNodeDescriptors();
33
34 /**
35 * Returns list of Prefix descriptor.
36 *
37 * @return list of Prefix descriptor
38 */
Shashikanth VH5dd8dbe2015-11-26 13:22:18 +053039 LinkedList<BgpValueType> getPrefixdescriptor();
Jonathan Hart317f4762015-11-09 16:05:36 -080040}