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
e7ed19d2
Commit
e7ed19d2
authored
13 years ago
by
Mandeep Dhami
Browse files
Options
Downloads
Patches
Plain Diff
Updated storage for IPaddress that was removed from the hashtable
parent
ba0d49fb
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
+3
-0
3 additions, 0 deletions
...tcontroller/devicemanager/internal/DeviceManagerImpl.java
with
3 additions
and
0 deletions
src/main/java/net/floodlightcontroller/devicemanager/internal/DeviceManagerImpl.java
+
3
−
0
View file @
e7ed19d2
...
...
@@ -809,6 +809,7 @@ public class DeviceManagerImpl implements IDeviceManager, IOFMessageListener,
}
// Also, if this address is currently mapped to a different device, fix it.
// This should be rare, so it is OK to do update the storage from here.
//
// NOTE: the mapping is observed, and the decision is made based on that, outside a lock.
// So the state may change by the time we get to do the map update. But that is OK since
...
...
@@ -818,10 +819,12 @@ public class DeviceManagerImpl implements IDeviceManager, IOFMessageListener,
(
deviceByNwaddr
.
getDataLayerAddressAsLong
()
!=
device
.
getDataLayerAddressAsLong
()))
{
updateNeworkAddressMap
=
true
;
Device
dCopy
=
new
Device
(
deviceByNwaddr
);
DeviceNetworkAddress
naOld
=
dCopy
.
getNetworkAddress
(
nwSrc
);
Map
<
Integer
,
DeviceNetworkAddress
>
namap
=
dCopy
.
getNetworkAddressesMap
();
if
(
namap
.
containsKey
(
nwSrc
))
namap
.
remove
(
nwSrc
);
dCopy
.
setNetworkAddresses
(
namap
.
values
());
this
.
devMgrMaps
.
updateMaps
(
dCopy
);
if
(
naOld
!=
null
)
removeNetworkAddressFromStorage
(
dCopy
,
naOld
);
}
}
...
...
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