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-12 15:53:42 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4009d2c55b9b73d5611c71fed39fa1863415ada6
4009d2c5
1 parent
0b11b746
Adding a sample GUI page to visualize topology.
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
apps/tvue/pom.xml
apps/tvue/src/main/java/org/onlab/onos/tvue/TopologyResource.java
apps/tvue/src/main/webapp/WEB-INF/web.xml
apps/tvue/src/main/webapp/index.html
features/features.xml
apps/tvue/pom.xml
View file @
4009d2c
...
...
@@ -11,7 +11,7 @@
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
onos-tvue
</artifactId>
<artifactId>
onos-
app-
tvue
</artifactId>
<packaging>
bundle
</packaging>
<description>
ONOS simple topology viewer
</description>
...
...
apps/tvue/src/main/java/org/onlab/onos/tvue/TopologyResource.java
View file @
4009d2c
...
...
@@ -100,7 +100,7 @@ public class TopologyResource extends BaseResource {
private
ObjectNode
json
(
ObjectMapper
mapper
,
ElementId
id
,
int
group
,
boolean
isOnline
)
{
return
mapper
.
createObjectNode
()
.
put
(
"name"
,
id
.
uri
().
toString
())
.
put
(
"name"
,
id
.
uri
().
getSchemeSpecificPart
())
.
put
(
"group"
,
group
)
.
put
(
"online"
,
isOnline
);
}
...
...
@@ -147,7 +147,7 @@ public class TopologyResource extends BaseResource {
// Returns a formatted string for the element associated with the given
// connection point.
private
static
String
id
(
ConnectPoint
cp
)
{
return
cp
.
elementId
().
uri
().
toString
();
return
cp
.
elementId
().
uri
().
getSchemeSpecificPart
();
}
}
...
...
apps/tvue/src/main/webapp/WEB-INF/web.xml
View file @
4009d2c
...
...
@@ -14,7 +14,7 @@
<servlet-class>
com.sun.jersey.spi.container.servlet.ServletContainer
</servlet-class>
<init-param>
<param-name>
com.sun.jersey.config.property.packages
</param-name>
<param-value>
org.onlab.onos.
gui
</param-value>
<param-value>
org.onlab.onos.
tvue
</param-value>
</init-param>
<load-on-startup>
1
</load-on-startup>
</servlet>
...
...
apps/tvue/src/main/webapp/index.html
View file @
4009d2c
This diff is collapsed. Click to expand it.
features/features.xml
View file @
4009d2c
...
...
@@ -62,7 +62,6 @@
<feature>
onos-core
</feature>
<bundle>
mvn:io.netty/netty/3.9.2.Final
</bundle>
<!--bundle>mvn:org.projectfloodlight/openflowj/0.3.8-SNAPSHOT</bundle-->
<bundle>
mvn:org.onlab.onos/onos-of-api/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onos-of-ctl/1.0.0-SNAPSHOT
</bundle>
...
...
@@ -71,4 +70,10 @@
<bundle>
mvn:org.onlab.onos/onos-of-provider-host/1.0.0-SNAPSHOT
</bundle>
</feature>
<feature
name=
"onos-app-tvue"
version=
"1.0.0"
description=
"ONOS sample topology viewer application"
>
<feature>
onos-core
</feature>
<bundle>
mvn:org.onlab.onos/onos-app-tvue/1.0.0-SNAPSHOT
</bundle>
</feature>
</features>
...
...
Please
register
or
login
to post a comment