aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2020-05-07 16:36:38 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-05-26 14:17:01 -0400
commitc2bf52d77eee2e2312c4e631951ba0404737e441 (patch)
treeb2a4b1a10eff0e3d1909b2ac096039cca6027738
parent96c693857619f1a3a10c68b075c74be9a8fa3776 (diff)
downloadsos-c2bf52d77eee2e2312c4e631951ba0404737e441.tar.gz
[openvswitch] poll dpdk status from ifaces and ports
It's possible that a deployment is using ovs-bonds rather than dpdk bond ports. In that case, it's required to pull the iface information as well. Resolves: #2051 Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/openvswitch.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/sos/report/plugins/openvswitch.py b/sos/report/plugins/openvswitch.py
index 833a1662..5da5d31a 100644
--- a/sos/report/plugins/openvswitch.py
+++ b/sos/report/plugins/openvswitch.py
@@ -183,6 +183,16 @@ class OpenVSwitch(Plugin):
port
)
+ if check_dpdk:
+ iface_list_result = self.exec_cmd(
+ "ovs-vsctl -t 5 list-ifaces %s" % br
+ )
+ if iface_list_result['status'] == 0:
+ for iface in iface_list_result['output'].splitlines():
+ self.add_cmd_output(
+ "ovs-appctl netdev-dpdk/get-mempool-info %s" %
+ iface)
+
class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin):