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
83ae82c7
Commit
83ae82c7
authored
12 years ago
by
Sandeep Hebbani
Browse files
Options
Downloads
Patches
Plain Diff
Interface to Suppress LLDPs on a per switch interface level. [#28379983]
parent
f5c5500f
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/linkdiscovery/internal/LinkDiscoveryManager.java
+23
-0
23 additions, 0 deletions
...ntroller/linkdiscovery/internal/LinkDiscoveryManager.java
with
23 additions
and
0 deletions
src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java
+
23
−
0
View file @
83ae82c7
...
...
@@ -165,6 +165,7 @@ public class LinkDiscoveryManager
* Map from a id:port to the set of links containing it as an endpoint
*/
protected
Map
<
SwitchPortTuple
,
Set
<
LinkTuple
>>
portLinks
;
protected
Set
<
SwitchPortTuple
>
suppressLLDPs
;
/**
* Set of link tuples over which multicast LLDPs are received
...
...
@@ -197,6 +198,20 @@ public class LinkDiscoveryManager
public
Map
<
SwitchPortTuple
,
Set
<
LinkTuple
>>
getPortLinks
()
{
return
portLinks
;
}
public
Set
<
SwitchPortTuple
>
getSuppressLLDPsInfo
()
{
return
suppressLLDPs
;
}
public
void
AddToSuppressLLDPs
(
IOFSwitch
sw
,
short
port
)
{
this
.
suppressLLDPs
.
add
(
new
SwitchPortTuple
(
sw
,
port
));
}
public
void
RemoveFromSuppressLLDPs
(
IOFSwitch
sw
,
short
port
)
{
this
.
suppressLLDPs
.
remove
(
new
SwitchPortTuple
(
sw
,
port
));
}
public
boolean
isShuttingDown
()
{
return
shuttingDown
;
...
...
@@ -227,6 +242,13 @@ public class LinkDiscoveryManager
}
protected
void
sendLLDPs
(
IOFSwitch
sw
,
OFPhysicalPort
port
,
boolean
isStandard
)
{
if
(
this
.
suppressLLDPs
.
contains
(
new
SwitchPortTuple
(
sw
,
port
.
getPortNumber
())))
{
/* Dont send LLDPs out of this port as suppressLLDPs set
*
*/
return
;
}
if
(
log
.
isTraceEnabled
())
{
log
.
trace
(
"Sending LLDP packet out of swich: {}, port: {}"
,
...
...
@@ -1323,6 +1345,7 @@ public class LinkDiscoveryManager
this
.
updates
=
new
LinkedBlockingQueue
<
LDUpdate
>();
this
.
links
=
new
HashMap
<
LinkTuple
,
LinkInfo
>();
this
.
portLinks
=
new
HashMap
<
SwitchPortTuple
,
Set
<
LinkTuple
>>();
this
.
suppressLLDPs
=
new
HashSet
<
SwitchPortTuple
>();
this
.
portBroadcastDomainLinks
=
new
HashMap
<
SwitchPortTuple
,
Set
<
LinkTuple
>>();
this
.
switchLinks
=
new
HashMap
<
IOFSwitch
,
Set
<
LinkTuple
>>();
this
.
evHistTopologySwitch
=
...
...
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