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
1e6f631e
Commit
1e6f631e
authored
13 years ago
by
Gregor Maier
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'floodlight/master'
parents
3db32b04
7c9c6777
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
+9
-8
9 additions, 8 deletions
...tcontroller/devicemanager/internal/DeviceManagerImpl.java
with
9 additions
and
8 deletions
src/main/java/net/floodlightcontroller/devicemanager/internal/DeviceManagerImpl.java
+
9
−
8
View file @
1e6f631e
...
...
@@ -642,8 +642,8 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
protected
static
int
DEVICE_MAX_AGE
=
60
*
60
*
24
;
protected
static
int
DEVICE_NA_MAX_AGE
=
60
*
60
*
2
;
protected
static
int
DEVICE_AP_MAX_AGE
=
60
*
60
*
2
;
protected
static
long
BD_TO_
N
BD_TIMEDIFF_MS
=
300000
;
// 5 minutes
protected
static
long
BD_TO_BD_TIMEDIFF_MS
=
5000
;
//
5
seconds
protected
static
long
N
BD_TO_BD_TIMEDIFF_MS
=
300000
;
// 5 minutes
protected
static
long
BD_TO_BD_TIMEDIFF_MS
=
5000
;
//
0
seconds
// This the amount of time that we need for a device to move from
// a non-broadcast domain port to a broadcast domain port.
...
...
@@ -911,7 +911,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
(
topology
.
isBroadcastDomainPort
(
newSw
,
newPort
)
==
true
))
{
long
dt
=
currentDate
.
getTime
()
-
oldDap
.
getLastSeen
().
getTime
()
;
if
(
dt
<
BD_TO_
N
BD_TIMEDIFF_MS
)
{
if
(
dt
<
N
BD_TO_BD_TIMEDIFF_MS
)
{
// if the packet was seen within the last 5 minutes, we should ignore.
// it should also ignore processing the packet.
if
(
log
.
isTraceEnabled
())
{
...
...
@@ -923,7 +923,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
dt
/
1000
}
);
}
return
Command
.
STOP
;
return
Command
.
CONTINUE
;
}
}
else
if
(
(
topology
.
getSwitchClusterId
(
currSw
)
==
topology
.
getSwitchClusterId
(
newSw
))
&&
(
topology
.
isBroadcastDomainPort
(
currSw
,
currPort
)
==
true
)
&&
...
...
@@ -942,7 +942,7 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
dt
/
1000
}
);
}
return
Command
.
STOP
;
return
Command
.
CONTINUE
;
}
}
}
...
...
@@ -1554,13 +1554,14 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
if
(
flag2
==
false
)
{
return
(
ls1
>
ls2
);
}
else
{
return
(
ls1
>
(
ls2
-
BD_TO_
N
BD_TIMEDIFF_MS
));
return
(
ls1
>
(
ls2
-
N
BD_TO_BD_TIMEDIFF_MS
));
}
}
else
{
if
(
flag2
==
false
)
{
return
(
ls1
>
(
ls2
+
BD_TO_
N
BD_TIMEDIFF_MS
));
return
(
ls1
>
(
ls2
+
N
BD_TO_BD_TIMEDIFF_MS
));
}
else
{
return
(
ls1
>
ls2
);
return
((
ls1
>
ls2
+
BD_TO_BD_TIMEDIFF_MS
)
||
(
ls1
<
ls2
&&
ls1
>
ls2
-
BD_TO_BD_TIMEDIFF_MS
));
}
}
}
...
...
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