commit | 45fd88a6289ec3c0fb516ebcb27ecf767a840797 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Thu Sep 24 17:34:35 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Sep 25 04:55:49 2015 +0000 |
tree | 2afe687fc2410e5a056ac4939a0b5de7ad75f851 | |
parent | f17f34a1d2bffc4b7b4ef8422ffd8645486a7fc3 [diff] [blame] |
Making OFChannel friendlier to non-compliant switches. Change-Id: I7917569cdb77f0baf3f485f981fd53b114e80d69
diff --git a/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java b/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java index 450aa82..1a088ff 100644 --- a/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java +++ b/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OFChannelHandler.java
@@ -941,7 +941,8 @@ void processOFHello(OFChannelHandler h, OFHello m) throws IOException, SwitchStateException { // we only expect hello in the WAIT_HELLO state - illegalMessageReceived(h, m); + log.warn("Received Hello outside WAIT_HELLO state; switch {} is not complaint.", + h.channel.getRemoteAddress()); } void processOFBarrierReply(OFChannelHandler h, OFBarrierReply m)