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-31 08:45:17 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
146adf4ad5a928b8b6a25c5e8942355569d0456d
146adf4a
2 parents
442d26a9
dc3fa083
Merge remote-tracking branch 'origin/master'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
web/gui/src/main/webapp/network.js
web/gui/src/main/webapp/onos.css
web/gui/src/main/webapp/network.js
View file @
146adf4
...
...
@@ -211,6 +211,8 @@
function
showAllLayers
()
{
network
.
node
.
classed
(
'inactive'
,
false
);
network
.
link
.
classed
(
'inactive'
,
false
);
d3
.
selectAll
(
'svg .port'
).
classed
(
'inactive'
,
false
)
d3
.
selectAll
(
'svg .portText'
).
classed
(
'inactive'
,
false
)
}
function
showPacketLayer
()
{
...
...
@@ -227,6 +229,9 @@
d3
.
select
(
this
).
classed
(
'inactive'
,
true
);
}
});
// deactivate non-packet ports
d3
.
selectAll
(
'svg .optPort'
).
classed
(
'inactive'
,
true
)
}
function
showOpticalLayer
()
{
...
...
@@ -243,6 +248,9 @@
d3
.
select
(
this
).
classed
(
'inactive'
,
true
);
}
});
// deactivate non-packet ports
d3
.
selectAll
(
'svg .pktPort'
).
classed
(
'inactive'
,
true
)
}
function
setUpKeyHandler
()
{
...
...
@@ -582,42 +590,39 @@
pw
=
config
.
labels
.
port
.
width
,
ph
=
config
.
labels
.
port
.
height
;
network
.
link
.
filter
(
'.infra'
).
each
(
function
(
d
,
i
)
{
network
.
link
.
filter
(
'.infra'
).
each
(
function
(
d
)
{
var
srcType
=
d
.
source
.
type
===
'roadm'
?
'optPort'
:
'pktPort'
,
tgtType
=
d
.
target
.
type
===
'roadm'
?
'optPort'
:
'pktPort'
;
if
(
d
.
source
.
type
)
network
.
linkSrcPort
.
append
(
'rect'
).
attr
({
id
:
'srcPort-'
+
safeId
(
d
.
id
),
class
:
'port
'
,
class
:
'port
'
+
srcType
,
width
:
pw
,
height
:
ph
,
Xx
:
i
*
20
,
Xy
:
0
,
rx
:
4
,
ry
:
4
}).
style
(
'visibility'
,
portVis
);
network
.
linkTgtPort
.
append
(
'rect'
).
attr
({
id
:
'tgtPort-'
+
safeId
(
d
.
id
),
class
:
'port
'
,
class
:
'port
'
+
tgtType
,
width
:
pw
,
height
:
ph
,
Xx
:
i
*
20
,
Xy
:
20
,
rx
:
4
,
ry
:
4
}).
style
(
'visibility'
,
portVis
);
network
.
linkSrcPort
.
append
(
'text'
).
attr
({
id
:
'srcText-'
+
safeId
(
d
.
id
),
class
:
'portText'
,
Xx
:
i
*
20
,
Xy
:
0
class
:
'portText '
+
srcType
}).
text
(
d
.
srcPort
)
.
style
(
'visibility'
,
portVis
);
network
.
linkTgtPort
.
append
(
'text'
).
attr
({
id
:
'tgtText-'
+
safeId
(
d
.
id
),
class
:
'portText'
,
Xx
:
i
*
20
,
Xy
:
20
class
:
'portText '
+
tgtType
}).
text
(
d
.
tgtPort
)
.
style
(
'visibility'
,
portVis
);
});
...
...
web/gui/src/main/webapp/onos.css
View file @
146adf4
...
...
@@ -93,7 +93,6 @@ svg .link {
stroke
:
#666
;
stroke-width
:
2.0px
;
opacity
:
.7
;
/*marker-end: url(#end);*/
transition
:
opacity
250ms
;
-webkit-transition
:
opacity
250ms
;
...
...
@@ -110,7 +109,6 @@ svg g.portLayer rect.port {
}
svg
g
.portLayer
text
{
Xstroke
:
#fff
;
font
:
8pt
sans-serif
;
pointer-events
:
none
;
}
...
...
@@ -126,7 +124,6 @@ svg .node.device rect {
svg
.node.device.fixed
rect
{
stroke-width
:
1.5
;
stroke
:
#ccc
;
Xstroke-dasharray
:
4
,
2
;
}
svg
.node.device.roadm
rect
{
...
...
@@ -166,6 +163,8 @@ svg .node.selected circle {
}
svg
.link.inactive
,
svg
.port.inactive
,
svg
.portText.inactive
,
svg
.node.inactive
rect
,
svg
.node.inactive
circle
,
svg
.node.inactive
text
,
...
...
Please
register
or
login
to post a comment