Skip to content
Snippets Groups Projects
Commit 5bf9794c authored by Ryan Izard's avatar Ryan Izard
Browse files

Supposed to use AND, not OR

parent f29fca38
No related branches found
No related tags found
No related merge requests found
......@@ -609,7 +609,7 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
u.getOperation() == UpdateOperation.TUNNEL_PORT_REMOVED) {
Set<OFMessage> msgs = new HashSet<OFMessage>();
if (u.getSrc() != null || !u.getSrc().equals(DatapathId.NONE)) {
if (u.getSrc() != null && !u.getSrc().equals(DatapathId.NONE)) {
IOFSwitch srcSw = switchService.getSwitch(u.getSrc());
/* src side of link */
if (srcSw != null) {
......@@ -631,7 +631,7 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
}
/* must be a link, not just a port down, if we have a dst switch */
if (u.getDst() != null || !u.getDst().equals(DatapathId.NONE)) {
if (u.getDst() != null && !u.getDst().equals(DatapathId.NONE)) {
/* dst side of link */
IOFSwitch dstSw = switchService.getSwitch(u.getDst());
if (dstSw != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment