blob: 3d31f370566d6c04a381447874f20b699590b6b9 [file] [log] [blame]
Madan Jampani58819b42014-10-09 13:48:51 -07001package org.onlab.onos.net.device;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07002
Madan Jampani58819b42014-10-09 13:48:51 -07003import org.onlab.onos.cluster.NodeId;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07004import org.onlab.onos.net.DeviceId;
Ayaka Koshibe8d504a92014-09-22 17:07:36 -07005
6/**
7 * Service for administering the inventory of device masterships.
8 */
Madan Jampani58819b42014-10-09 13:48:51 -07009public interface DeviceMastershipAdminService {
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070010
11 /**
12 * Applies the current mastership role for the specified device.
13 *
14 * @param instance controller instance identifier
15 * @param deviceId device identifier
16 * @param role requested role
17 */
Madan Jampani195af6e2014-10-09 15:01:17 -070018 void setRole(NodeId instance, DeviceId deviceId, DeviceMastershipRole role);
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070019
20}