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
Praseed Balakrishnan
2014-10-23 10:34:24 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0f959583fb4bc6f8272844e4a75be4a0f2899806
0f959583
2 parents
68b4016f
44edb814
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
core/net/src/main/java/org/onlab/onos/net/link/impl/LinkManager.java
core/net/src/main/java/org/onlab/onos/net/link/impl/LinkManager.java
View file @
0f95958
...
...
@@ -197,14 +197,7 @@ public class LinkManager
checkNotNull
(
linkDescription
,
LINK_DESC_NULL
);
checkValidity
();
ConnectPoint
src
=
linkDescription
.
src
();
ConnectPoint
dst
=
linkDescription
.
dst
();
// if we aren't master for the device associated with the ConnectPoint
// we probably shouldn't be doing this.
// if (deviceService.getRole(dst.deviceId()) != MastershipRole.MASTER) {
// return;
// }
LinkEvent
event
=
store
.
createOrUpdateLink
(
provider
().
id
(),
linkDescription
);
if
(
event
!=
null
)
{
...
...
@@ -232,11 +225,7 @@ public class LinkManager
public
void
linksVanished
(
ConnectPoint
connectPoint
)
{
checkNotNull
(
connectPoint
,
"Connect point cannot be null"
);
checkValidity
();
// if we aren't master for the device associated with the ConnectPoint
// we probably shouldn't be doing this.
if
(
deviceService
.
getRole
(
connectPoint
.
deviceId
())
!=
MastershipRole
.
MASTER
)
{
return
;
}
log
.
info
(
"Links for connection point {} vanished"
,
connectPoint
);
// FIXME: This will remove links registered by other providers
removeLinks
(
getLinks
(
connectPoint
));
...
...
@@ -246,11 +235,7 @@ public class LinkManager
public
void
linksVanished
(
DeviceId
deviceId
)
{
checkNotNull
(
deviceId
,
DEVICE_ID_NULL
);
checkValidity
();
// if we aren't master for the device associated with the ConnectPoint
// we probably shouldn't be doing this.
if
(
deviceService
.
getRole
(
deviceId
)
!=
MastershipRole
.
MASTER
)
{
return
;
}
log
.
info
(
"Links for device {} vanished"
,
deviceId
);
removeLinks
(
getDeviceLinks
(
deviceId
));
}
...
...
Please
register
or
login
to post a comment