Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
0be77708
Commit
0be77708
authored
12 years ago
by
Kanzhe Jiang
Browse files
Options
Downloads
Patches
Plain Diff
format update
parent
51ca40a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/devicemanager/internal/DeviceManagerImpl.java
+17
-0
17 additions, 0 deletions
...tcontroller/devicemanager/internal/DeviceManagerImpl.java
with
17 additions
and
0 deletions
src/main/java/net/floodlightcontroller/devicemanager/internal/DeviceManagerImpl.java
+
17
−
0
View file @
0be77708
...
...
@@ -697,6 +697,20 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
public
Update
(
UpdateType
type
)
{
this
.
updateType
=
type
;
}
@Override
public
String
toString
()
{
String
updateString
=
null
;
switch
(
updateType
)
{
case
ADDRESS_ADDED:
case
ADDRESS_REMOVED:
updateString
=
address
.
toString
();
break
;
}
return
"Update: device "
+
device
.
getDlAddrString
()
+
" Type "
+
updateType
+
" "
+
updateString
;
}
}
protected
class
PendingAttachmentPoint
{
...
...
@@ -825,6 +839,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
*/
while
(
topoChanged
)
{
try
{
log
.
debug
(
"Waiting for completion of topoChange"
);
this
.
devMgrMaps
.
wait
();
}
catch
(
InterruptedException
e
)
{
log
.
error
(
"DeviceManagerImpl: Interrupt exception: {}"
,
e
);
...
...
@@ -1591,6 +1606,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
public
void
topologyChanged
()
{
// Halt packetIn processing to handle topoChange event.
topoChanged
=
true
;
log
.
debug
(
"Set topoChanged flag to true. Stop packetIn processing"
);
deviceUpdateTask
.
reschedule
(
1
,
TimeUnit
.
MILLISECONDS
);
}
...
...
@@ -2166,6 +2182,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
}
devMgrMaps
.
notify
();
topoChanged
=
false
;
log
.
debug
(
"Done topoChange"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment