blob: bd82f489960e95c8a3550bea0e70b9f61891ad8e [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;
20import org.onosproject.net.ConnectPoint;
21
22/**
23 * Service for interacting with an access device (OLT).
24 */
25public interface AccessDeviceService {
26
27 /**
28 * Provisions connectivity for a subscriber on an access device.
29 *
30 * @param port subscriber's connection point
31 * @param vlan VLAN ID to provision for subscriber
32 */
33 void provisionSubscriber(ConnectPoint port, VlanId vlan);
34
35 /**
36 * Removes provisioned connectivity for a subscriber from an access device.
37 *
38 * @param port subscriber's connection point
39 */
40 void removeSubscriber(ConnectPoint port);
41}