Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-09-24 12:07:58 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3f2bbd7028fa1eb78b3c9aef3288ddf6f1bfd2ab
3f2bbd70
1 parent
0755a367
Added back-pipe for role assertion issues.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/device/DeviceProviderService.java
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
providers/openflow/device/src/test/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProviderTest.java
core/api/src/main/java/org/onlab/onos/net/device/DeviceProviderService.java
View file @
3f2bbd7
package
org
.
onlab
.
onos
.
net
.
device
;
import
org.onlab.onos.net.DeviceId
;
import
org.onlab.onos.net.MastershipRole
;
import
org.onlab.onos.net.provider.ProviderService
;
import
java.util.List
;
...
...
@@ -45,4 +46,13 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> {
*/
void
portStatusChanged
(
DeviceId
deviceId
,
PortDescription
portDescription
);
/**
* Notifies the core about the providers inability to assert the specified
* mastership role on the device.
*
* @param deviceId identity of the device
* @param role mastership role being asserted
*/
void
unableToAssertRole
(
DeviceId
deviceId
,
MastershipRole
role
);
}
...
...
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
View file @
3f2bbd7
...
...
@@ -224,6 +224,11 @@ public class DeviceManager
post
(
event
);
}
}
@Override
public
void
unableToAssertRole
(
DeviceId
deviceId
,
MastershipRole
role
)
{
// FIXME: implement response to this notification
}
}
// Posts the specified event to the local event dispatcher.
...
...
providers/openflow/device/src/test/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProviderTest.java
View file @
3f2bbd7
...
...
@@ -20,6 +20,7 @@ import org.junit.Test;
import
org.onlab.onos.net.DefaultDevice
;
import
org.onlab.onos.net.Device
;
import
org.onlab.onos.net.DeviceId
;
import
org.onlab.onos.net.MastershipRole
;
import
org.onlab.onos.net.device.DeviceDescription
;
import
org.onlab.onos.net.device.DeviceProvider
;
import
org.onlab.onos.net.device.DeviceProviderRegistry
;
...
...
@@ -181,6 +182,11 @@ public class OpenFlowDeviceProviderTest {
descr
=
portDescription
;
}
@Override
public
void
unableToAssertRole
(
DeviceId
deviceId
,
MastershipRole
role
)
{
// FIXME: add fixture core when tests are done on this
}
}
}
...
...
Please
register
or
login
to post a comment