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
Thomas Vachuska
2014-10-30 09:15:34 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c3d86aee9be5e49aa1c9dc4d35d0dd485a974fc8
c3d86aee
1 parent
b5b71b3c
Added link port information to topology data.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
View file @
c3d86ae
...
...
@@ -209,9 +209,13 @@ public class TopologyResource extends BaseResource {
// Produces JSON for a link.
private
ObjectNode
json
(
ObjectMapper
mapper
,
AggLink
aggLink
)
{
Link
link
=
aggLink
.
link
;
ConnectPoint
src
=
link
.
src
();
ConnectPoint
dst
=
link
.
dst
();
return
mapper
.
createObjectNode
()
.
put
(
"src"
,
link
.
src
().
deviceId
().
toString
())
.
put
(
"dst"
,
link
.
dst
().
deviceId
().
toString
())
.
put
(
"src"
,
src
.
deviceId
().
toString
())
.
put
(
"srcPort"
,
src
.
port
().
toString
())
.
put
(
"dst"
,
dst
.
deviceId
().
toString
())
.
put
(
"dstPort"
,
dst
.
port
().
toString
())
.
put
(
"type"
,
link
.
type
().
toString
().
toLowerCase
())
.
put
(
"linkWidth"
,
aggLink
.
links
.
size
());
}
...
...
Please
register
or
login
to post a comment