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-28 15:53:30 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0bbbd4f89f88f3c9774c83c4e928d8556f330e1
c0bbbd4f
1 parent
f5d90939
Allowing link stores to create links injected by ancillary providers.
Fixed oe-linc config
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
27 deletions
core/store/dist/src/main/java/org/onlab/onos/store/link/impl/GossipLinkStore.java
core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleLinkStore.java
tools/test/topos/oe-linear-3.json
core/store/dist/src/main/java/org/onlab/onos/store/link/impl/GossipLinkStore.java
View file @
c0bbbd4
...
...
@@ -345,14 +345,6 @@ public class GossipLinkStore
// Creates and stores the link and returns the appropriate event.
// Guarded by linkDescs value (=locking each Link)
private
LinkEvent
createLink
(
LinkKey
key
,
Link
newLink
)
{
if
(
newLink
.
providerId
().
isAncillary
())
{
// TODO: revisit ancillary only Link handling
// currently treating ancillary only as down (not visible outside)
return
null
;
}
links
.
put
(
key
,
newLink
);
srcLinks
.
put
(
newLink
.
src
().
deviceId
(),
key
);
dstLinks
.
put
(
newLink
.
dst
().
deviceId
(),
key
);
...
...
@@ -362,14 +354,6 @@ public class GossipLinkStore
// Updates, if necessary the specified link and returns the appropriate event.
// Guarded by linkDescs value (=locking each Link)
private
LinkEvent
updateLink
(
LinkKey
key
,
Link
oldLink
,
Link
newLink
)
{
if
(
newLink
.
providerId
().
isAncillary
())
{
// TODO: revisit ancillary only Link handling
// currently treating ancillary only as down (not visible outside)
return
null
;
}
// Note: INDIRECT -> DIRECT transition only
// so that BDDP discovered Link will not overwrite LDDP Link
if
((
oldLink
.
type
()
==
INDIRECT
&&
newLink
.
type
()
==
DIRECT
)
||
...
...
core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleLinkStore.java
View file @
c0bbbd4
...
...
@@ -216,12 +216,6 @@ public class SimpleLinkStore
// Updates, if necessary the specified link and returns the appropriate event.
// Guarded by linkDescs value (=locking each Link)
private
LinkEvent
updateLink
(
LinkKey
key
,
Link
oldLink
,
Link
newLink
)
{
if
(
newLink
.
providerId
().
isAncillary
())
{
// TODO: revisit ancillary only Link handling
// currently treating ancillary only as down (not visible outside)
return
null
;
}
if
((
oldLink
.
type
()
==
INDIRECT
&&
newLink
.
type
()
==
DIRECT
)
||
!
AnnotationsUtil
.
isEqual
(
oldLink
.
annotations
(),
newLink
.
annotations
()))
{
...
...
tools/test/topos/oe-linear-3.json
View file @
c0bbbd4
...
...
@@ -29,14 +29,14 @@
],
"links"
:
[
{
"src"
:
"of:0000ffffffffff01/
1
0"
,
"dst"
:
"of:0000ffffffffff03/30"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"optical.waves"
:
80
,
"optical.type"
:
"WDM"
}
},
{
"src"
:
"of:0000ffffffffff02/2
0
"
,
"dst"
:
"of:0000ffffffffff03/31"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"optical.waves"
:
80
,
"optical.type"
:
"WDM"
}
},
{
"src"
:
"of:0000ffffffffff01/
2
0"
,
"dst"
:
"of:0000ffffffffff03/30"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"optical.waves"
:
80
,
"optical.type"
:
"WDM"
}
},
{
"src"
:
"of:0000ffffffffff02/2
1
"
,
"dst"
:
"of:0000ffffffffff03/31"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"optical.waves"
:
80
,
"optical.type"
:
"WDM"
}
},
{
"src"
:
"of:0000ffffffff0001/
10"
,
"dst"
:
"of:0000ffffffffff01/11
"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"bandwidth"
:
100000
,
"optical.type"
:
"cross-connect"
}
},
{
"src"
:
"of:0000ffffffff0002/
10"
,
"dst"
:
"of:0000ffffffffff02/2
1"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"bandwidth"
:
100000
,
"optical.type"
:
"cross-connect"
}
}
{
"src"
:
"of:0000ffffffff0001/
2"
,
"dst"
:
"of:0000ffffffffff01/10
"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"bandwidth"
:
100000
,
"optical.type"
:
"cross-connect"
}
},
{
"src"
:
"of:0000ffffffff0002/
2"
,
"dst"
:
"of:0000ffffffffff02/1
1"
,
"type"
:
"OPTICAL"
,
"annotations"
:
{
"bandwidth"
:
100000
,
"optical.type"
:
"cross-connect"
}
}
],
"hosts"
:
[
"
X
hosts"
:
[
{
"mac"
:
"a0:00:00:00:00:11"
,
"vlan"
:
-1
,
"location"
:
"of:0000ffffffff0001/11"
,
"ip"
:
"1.2.3.4"
},
{
"mac"
:
"a0:00:00:00:00:12"
,
"vlan"
:
-1
,
"location"
:
"of:0000ffffffff0001/12"
,
"ip"
:
"1.2.3.5"
},
{
"mac"
:
"a0:00:00:00:00:21"
,
"vlan"
:
-1
,
"location"
:
"of:0000ffffffff0002/11"
,
"ip"
:
"2.2.3.4"
},
...
...
Please
register
or
login
to post a comment