commit | 31b0048a7808f3b9e34378a99030e5de926cca2a | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Thu Feb 07 08:06:28 2019 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Thu Feb 07 18:15:23 2019 +0000 |
tree | cfee7375082d10529387ce76258824238a6c8ee0 | |
parent | 48ea5a09cc1eb0b166c6c3a81b049f3bc638d64f [diff] [blame] |
Suppress exception stack traces on warning conditions to prevent STC faiures for non-fatal situations Change-Id: I10d4945e92b3674f00725597d00fc13cc140c943
diff --git a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java index 55ea65e..264629e 100644 --- a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java +++ b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java
@@ -531,6 +531,11 @@ // Here is where we differentiate between different kinds of switches h.sw = h.controller.getOFSwitchInstance(h.thisdpid, drep, h.ofVersion); + if (h.sw == null) { + log.info("Switch not found for {}", h.thisdpid); + return; + } + h.sw.setOFVersion(h.ofVersion); h.sw.setFeaturesReply(h.featuresReply); h.sw.setPortDescReplies(h.portDescReplies);