commit | 07752ecffa1c543f7232428734c5523e3b05f977 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Jun 29 22:49:20 2016 -0700 |
committer | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Wed Jun 29 22:49:20 2016 -0700 |
tree | 3a8e811ab0ab543d2d1cb0b8f7be60da3f5e0632 | |
parent | 930138e306c4541fa1c5bee2f38ac53dd78fc89d [diff] |
Attempt to reduce harmless warnings during shutdown Change-Id: I431c9d5944c1655c45c4ece8b39da4fdb108c6f4
diff --git a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java index 0f9fa56..146ccc3 100644 --- a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java +++ b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupStatsCollector.java
@@ -77,6 +77,9 @@ if (sw.getRole() != RoleState.MASTER) { return; } + if (!sw.isConnected()) { + return; + } Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2); OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest() .setGroup(OFGroup.ALL)