blob: 9ce5a0daf6ed8d35c312f3babca60542b12fda04 [file] [log] [blame]
amit.ghosh6104cf52021-01-07 16:53:28 +01001/*
2 * Copyright 2016-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.opencord.olttopology;
18
19
20import org.onosproject.net.ConnectPoint;
21
22import java.util.Map;
23
24/**
25 * Service for configuring the OLT topology collection and for
26 * viewing the topology information.
27 */
28public interface OltTopologyInformationService {
29
30 /**
31 * Get a collection of OLT ports and their neighbors.
32 *
33 * @return OLT Connect points and it's neighbors
34 */
35 Map<ConnectPoint, OltNeighborInfo> getNeighbours();
36
37 /**
38 * Provision Timer for sending LLDP packets to OLT NNI Ports.
39 *
40 * @param timer Periodicity in minutes for sending out LLDP packet to OLT NNI ports.
41 */
42 void lldpPeriodicity(int timer);
43}