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
alshabib
2014-10-30 17:27:00 +0100
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
e171d534387dfae725194b9fbfa0cec5993cc870
e171d534
2 parents
3460da1c
73171375
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
web/gui/src/main/webapp/network.js
web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
View file @
e171d53
...
...
@@ -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
());
}
...
...
web/gui/src/main/webapp/network.js
View file @
e171d53
Please
register
or
login
to post a comment