blob: c5ced268f893da6036639f03fd69d2629fe63bdd [file] [log] [blame]
mohamed rahil8ea09d42016-04-19 20:47:21 +05301/*
2 * Copyright 2016-present 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.isis.controller;
17
18import java.util.Map;
19
20/**
21 * Representation of an ISIS LSP bin which is part of LSP aging process.
22 */
23public interface IsisLspBin {
24
25 /**
26 * Returns all the LSPs in the bin.
27 *
28 * @return all LSPs in the bin
29 */
30 Map<String, LspWrapper> listOfLsp();
31
32 /**
33 * Adds LSP to bin for aging.
34 *
35 * @param lspKey key to add the LSP
36 * @param lspWrapper LSP wrapper instance
37 */
38 void addIsisLsp(String lspKey, LspWrapper lspWrapper);
39
40 /**
41 * Removes LSP from bin.
42 *
43 * @param lspKey LSP key
44 * @param lspWrapper LSP wrapper instance
45 */
46 void removeIsisLsp(String lspKey, LspWrapper lspWrapper);
sunish vk7bdf4d42016-06-24 12:29:43 +053047}