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 |
| 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 | } |