tom | e5ec3fd | 2014-09-04 15:18:06 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.device; |
| 2 | |
| 3 | import org.onlab.onos.net.DeviceId; |
| 4 | import org.onlab.onos.net.MastershipRole; |
| 5 | |
| 6 | /** |
| 7 | * Service for administering the inventory of infrastructure devices. |
| 8 | */ |
| 9 | public 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 Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 16 | * @deprecated Will be removed in favor of MastershipAdminService.setRole() |
tom | e5ec3fd | 2014-09-04 15:18:06 -0700 | [diff] [blame] | 17 | */ |
Ayaka Koshibe | 8d504a9 | 2014-09-22 17:07:36 -0700 | [diff] [blame] | 18 | @Deprecated |
tom | e5ec3fd | 2014-09-04 15:18:06 -0700 | [diff] [blame] | 19 | 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 | } |