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
Simon Hunt
2014-10-31 08:38:21 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac525757a69c6de3e1fd7935b674ada62cbd86dc
ac525757
1 parent
571e15fd
Fixed bug whereby port labels did not fade in filtered views.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
web/gui/src/main/webapp/network.js
web/gui/src/main/webapp/onos.css
web/gui/src/main/webapp/network.js
View file @
ac52575
...
...
@@ -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 @
ac52575
...
...
@@ -166,6 +166,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