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-08 02:05:34 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9b836db4073b9d148bdca2bfb54b24819cd2a9ce
9b836db4
1 parent
6901237d
Fixed a defect in device provider.
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
cli/src/main/java/org/onlab/onos/cli/net/DevicesListCommand.java
cli/src/main/java/org/onlab/onos/cli/net/LinksListCommand.java
providers/of/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
cli/src/main/java/org/onlab/onos/cli/net/DevicesListCommand.java
View file @
9b836db
...
...
@@ -18,7 +18,7 @@ public class DevicesListCommand extends AbstractShellCommand {
@Override
protected
Object
doExecute
()
throws
Exception
{
for
(
Device
device
:
getService
(
DeviceService
.
class
).
getDevices
())
{
print
(
FMT
,
device
.
id
(),
device
.
type
(),
device
.
manufacturer
(),
print
(
FMT
,
device
.
id
()
.
uri
()
,
device
.
type
(),
device
.
manufacturer
(),
device
.
hwVersion
(),
device
.
swVersion
(),
device
.
serialNumber
());
}
return
null
;
...
...
cli/src/main/java/org/onlab/onos/cli/net/LinksListCommand.java
View file @
9b836db
...
...
@@ -21,15 +21,14 @@ public class LinksListCommand extends AbstractShellCommand {
required
=
false
,
multiValued
=
false
)
String
deviceId
=
null
;
@Override
protected
Object
doExecute
()
throws
Exception
{
LinkService
service
=
getService
(
LinkService
.
class
);
Iterable
<
Link
>
links
=
deviceId
!=
null
?
service
.
getDeviceLinks
(
deviceId
(
deviceId
))
:
service
.
getLinks
();
for
(
Link
link
:
links
)
{
print
(
FMT
,
link
.
src
().
deviceId
(),
link
.
src
().
port
(),
link
.
dst
().
deviceId
(),
link
.
dst
().
port
(),
link
.
type
());
print
(
FMT
,
link
.
src
().
deviceId
()
.
uri
()
,
link
.
src
().
port
(),
link
.
dst
().
deviceId
()
.
uri
()
,
link
.
dst
().
port
(),
link
.
type
());
}
return
null
;
}
...
...
providers/of/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
View file @
9b836db
...
...
@@ -117,7 +117,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
sw
.
manfacturerDescription
(),
sw
.
hardwareDescription
(),
sw
.
softwareDescription
(),
sw
.
s
oftwareDescription
());
sw
.
s
erialNumber
());
providerService
.
deviceConnected
(
deviceId
(
uri
),
description
);
providerService
.
updatePorts
(
deviceId
(
uri
),
buildPortDescriptions
(
sw
.
getPorts
()));
}
...
...
Please
register
or
login
to post a comment