Skip to content

Commit

Permalink
[openvswitch] convert to add_journal interface
Browse files Browse the repository at this point in the history
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
  • Loading branch information
bmr-cymru committed Jun 2, 2016
1 parent 4392bbc commit becbaae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sos/plugins/openvswitch.py
Expand Up @@ -43,9 +43,6 @@ def setup(self):
"ovsdb-client -f list dump",
# List the contents of runtime directory
"ls -laZ /var/run/openvswitch",
# Gather systemd services logs
"journalctl -u openvswitch",
"journalctl -u openvswitch-nonetwork",
# List devices and their drivers
"dpdk_nic_bind --status",
# Capture a list of all bond devices
Expand All @@ -68,6 +65,10 @@ def setup(self):
"ovs-vsctl -t 5 get Open_vSwitch . other_config"
])

# Gather systemd services logs
self.add_journal(units="openvswitch")
self.add_journal(units="openvswitch-nonetwork")

# Gather additional output for each OVS bridge on the host.
br_list_result = self.call_ext_prog("ovs-vsctl list-br")
if br_list_result['status'] == 0:
Expand Down

0 comments on commit becbaae

Please sign in to comment.