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
alshabib
2014-09-09 14:50:51 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a159a32c5a5c4bf3adb7f88bcd5cb1c0f4141abc
a159a32c
1 parent
662dde98
minor cleanup
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/OpenFlowLinkProvider.java
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
View file @
a159a32
...
...
@@ -166,10 +166,11 @@ public class LinkDiscovery implements TimerTask {
*
* @param port the port
*/
public
void
removePort
(
final
OFPort
port
)
{
public
void
removePort
(
final
OFPort
Desc
port
)
{
// Ignore ports that are not on this switch
int
portnum
=
port
.
getPortNumber
();
int
portnum
=
port
.
getPortNo
().
getPortNumber
();
this
.
ports
.
remove
(
portnum
);
synchronized
(
this
)
{
if
(
this
.
slowPorts
.
contains
(
portnum
))
{
this
.
slowPorts
.
remove
(
portnum
);
...
...
@@ -383,7 +384,7 @@ public class LinkDiscovery implements TimerTask {
public
void
removeAllPorts
()
{
for
(
OFPortDesc
port
:
sw
.
getPorts
())
{
removePort
(
port
.
getPortNo
()
);
removePort
(
port
);
}
}
...
...
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/OpenFlowLinkProvider.java
View file @
a159a32
...
...
@@ -125,7 +125,7 @@ public class OpenFlowLinkProvider extends AbstractProvider implements LinkProvid
DeviceId
.
deviceId
(
"of:"
+
Long
.
toHexString
(
dpid
.
value
())),
PortNumber
.
portNumber
(
port
.
getPortNo
().
getPortNumber
()));
providerService
.
linksVanished
(
cp
);
ld
.
removePort
(
port
.
getPortNo
()
);
ld
.
removePort
(
port
);
}
}
...
...
Please
register
or
login
to post a comment