blob: 74d8a28e7d9e9513f1fc63c0f13f02eb3a66fcf3 [file] [log] [blame]
Jonathan Harte533a422015-10-20 17:31:24 -07001/*
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 */
16
17package org.onosproject.olt;
18
19import org.onlab.packet.VlanId;
alshabib8e4fd2f2016-01-12 15:55:53 -080020import org.onosproject.event.ListenerService;
Jonathan Harte533a422015-10-20 17:31:24 -070021import org.onosproject.net.ConnectPoint;
alshabibe0559672016-02-21 14:49:51 -080022import org.onosproject.net.DeviceId;
23
24import java.util.Map;
Jonathan Harte533a422015-10-20 17:31:24 -070025
26/**
27 * Service for interacting with an access device (OLT).
28 */
alshabib8e4fd2f2016-01-12 15:55:53 -080029public interface AccessDeviceService
30 extends ListenerService<AccessDeviceEvent, AccessDeviceListener> {
Jonathan Harte533a422015-10-20 17:31:24 -070031
32 /**
33 * Provisions connectivity for a subscriber on an access device.
34 *
35 * @param port subscriber's connection point
36 * @param vlan VLAN ID to provision for subscriber
37 */
38 void provisionSubscriber(ConnectPoint port, VlanId vlan);
39
40 /**
41 * Removes provisioned connectivity for a subscriber from an access device.
42 *
43 * @param port subscriber's connection point
44 */
45 void removeSubscriber(ConnectPoint port);
alshabib8e4fd2f2016-01-12 15:55:53 -080046
alshabibe0559672016-02-21 14:49:51 -080047 /**
48 * Returns the map of configured OLTs.
49 *
50 * @return a map
51 */
52 Map<DeviceId, AccessDeviceData> fetchOlts();
53
Jonathan Harte533a422015-10-20 17:31:24 -070054}