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
Ayaka Koshibe
2014-10-08 17:46:07 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c292d7720c90901800ba246c367062aa43364b8
1c292d77
1 parent
1b458550
minor role relinquishment fix
Change-Id: I8fb2d65795b6bba6c0838c5efcf17d6f6528ea65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
core/net/src/main/java/org/onlab/onos/cluster/impl/MastershipManager.java
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
core/net/src/main/java/org/onlab/onos/cluster/impl/MastershipManager.java
View file @
1c292d7
...
...
@@ -99,8 +99,8 @@ implements MastershipService, MastershipAdminService {
@Override
public
void
relinquishMastership
(
DeviceId
deviceId
)
{
MastershipEvent
event
=
null
;
event
=
store
.
relinquishRole
(
clusterService
.
getLocalNode
().
id
(),
deviceId
);
event
=
store
.
relinquishRole
(
clusterService
.
getLocalNode
().
id
(),
deviceId
);
if
(
event
!=
null
)
{
post
(
event
);
...
...
core/net/src/main/java/org/onlab/onos/net/device/impl/DeviceManager.java
View file @
1c292d7
...
...
@@ -257,6 +257,8 @@ public class DeviceManager
// temporarily request for Master Role and mark offline.
if
(!
mastershipService
.
getLocalRole
(
deviceId
).
equals
(
MastershipRole
.
MASTER
))
{
log
.
debug
(
"Device {} disconnected, but I am not the master"
,
deviceId
);
//let go of any role anyways
mastershipService
.
relinquishMastership
(
deviceId
);
return
;
}
DeviceEvent
event
=
store
.
markOffline
(
deviceId
);
...
...
Please
register
or
login
to post a comment