blob: 78c9c394893a7c9fe280d5d1bc0a4af4c4ce7581 [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;
5import org.onlab.onos.net.MastershipRole;
6
7/**
8 * Service for administering the inventory of device masterships.
9 */
Madan Jampani58819b42014-10-09 13:48:51 -070010public interface DeviceMastershipAdminService {
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070011
12 /**
13 * Applies the current mastership role for the specified device.
14 *
15 * @param instance controller instance identifier
16 * @param deviceId device identifier
17 * @param role requested role
18 */
tome4729872014-09-23 00:37:37 -070019 void setRole(NodeId instance, DeviceId deviceId, MastershipRole role);
Ayaka Koshibe8d504a92014-09-22 17:07:36 -070020
21}