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
Ayaka Koshibe
2014-09-22 10:23:54 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
39a04805b7b57c4c6e215103df5d15160a5a75d7
39a04805
1 parent
b3b2ac4f
minor fixes to DeviceProviderTest
Change-Id: I381b85beced2bdca2029700dacd95c9b792d15df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
providers/openflow/device/src/test/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProviderTest.java
providers/openflow/device/src/test/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProviderTest.java
View file @
39a0480
...
...
@@ -115,6 +115,7 @@ public class OpenFlowDeviceProviderTest {
.
setDesc
(
PD3
)
.
build
();
controller
.
listener
.
portChanged
(
DPID1
,
stat
);
assertNotNull
(
"never went throught the provider service"
,
registry
.
descr
);
assertEquals
(
"port status unhandled"
,
3
,
registry
.
ports
.
get
(
DID1
).
size
());
}
...
...
@@ -129,6 +130,7 @@ public class OpenFlowDeviceProviderTest {
DeviceProvider
provider
;
Set
<
DeviceId
>
connected
=
new
HashSet
<
DeviceId
>();
Multimap
<
DeviceId
,
PortDescription
>
ports
=
HashMultimap
.
create
();
PortDescription
descr
=
null
;
@Override
public
DeviceProviderService
register
(
DeviceProvider
provider
)
{
...
...
@@ -175,9 +177,8 @@ public class OpenFlowDeviceProviderTest {
@Override
public
void
portStatusChanged
(
DeviceId
deviceId
,
PortDescription
portDescription
)
{
System
.
err
.
println
(
deviceId
+
":"
+
portDescription
.
toString
());
System
.
err
.
println
(
ports
.
put
(
deviceId
,
portDescription
));
ports
.
put
(
deviceId
,
portDescription
);
descr
=
portDescription
;
}
}
...
...
Please
register
or
login
to post a comment