blob: 23856ab1a62cc0e8a5d3c31019f555189c70f028 [file] [log] [blame]
tome5ec3fd2014-09-04 15:18:06 -07001package org.onlab.onos.net.device;
2
3import org.onlab.onos.net.DeviceId;
4import org.onlab.onos.net.MastershipRole;
5
6/**
7 * Service for administering the inventory of infrastructure devices.
8 */
9public interface DeviceAdminService {
10
11 /**
12 * Applies the current mastership role for the specified device.
13 *
14 * @param deviceId device identifier
15 * @param role requested role
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070016 * @deprecated Will be removed in favor of MastershipAdminService.setRole()
tome5ec3fd2014-09-04 15:18:06 -070017 */
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070018 @Deprecated
tome5ec3fd2014-09-04 15:18:06 -070019 void setRole(DeviceId deviceId, MastershipRole role);
20
21 /**
22 * Removes the device with the specified identifier.
23 *
24 * @param deviceId device identifier
25 */
26 void removeDevice(DeviceId deviceId);
27
28 // TODO: add ability to administratively suspend/resume device
29
30}