blob: 2998489fcff90d46a75e403874166b70309a6650 [file] [log] [blame]
andreaeb70a942015-10-16 21:34:46 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
andreaeb70a942015-10-16 21:34:46 -07003 *
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.netconf;
18
Andrea Campanella7e6200a2016-03-21 09:48:40 -070019import org.onosproject.net.DeviceId;
20
andreaeb70a942015-10-16 21:34:46 -070021/**
22 * Allows for providers interested in node events to be notified.
23 */
24public interface NetconfDeviceListener {
25
26 /**
Andrea Campanella7e6200a2016-03-21 09:48:40 -070027 * Notifies that the device was added.
andreaeb70a942015-10-16 21:34:46 -070028 *
Andrea Campanella7e6200a2016-03-21 09:48:40 -070029 * @param deviceId the device that was added
andreaeb70a942015-10-16 21:34:46 -070030 */
Andrea Campanella7e6200a2016-03-21 09:48:40 -070031 void deviceAdded(DeviceId deviceId);
andreaeb70a942015-10-16 21:34:46 -070032
33 /**
Andrea Campanella7e6200a2016-03-21 09:48:40 -070034 * Notifies that the device was removed.
andreaeb70a942015-10-16 21:34:46 -070035 *
Andrea Campanella7e6200a2016-03-21 09:48:40 -070036 * @param deviceId the device that was removed
andreaeb70a942015-10-16 21:34:46 -070037 */
Andrea Campanella7e6200a2016-03-21 09:48:40 -070038
39 void deviceRemoved(DeviceId deviceId);
andreaeb70a942015-10-16 21:34:46 -070040}