blob: 8aec28a3b19c94ebfcf0b04fdc06164cdcdaf3e0 [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
16 */
17 void setRole(DeviceId deviceId, MastershipRole role);
18
19 /**
20 * Removes the device with the specified identifier.
21 *
22 * @param deviceId device identifier
23 */
24 void removeDevice(DeviceId deviceId);
25
26 // TODO: add ability to administratively suspend/resume device
27
28}