aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/openvswitch.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index e50111ac..b3bc4054 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -25,9 +25,17 @@ class OpenVSwitch(Plugin):
def setup(self):
+ all_logs = self.get_option("all_logs")
+ limit = self.get_option("log_size")
+
+ if not all_logs:
+ self.add_copy_spec("/var/log/openvswitch/*.log",
+ sizelimit=limit)
+ else:
+ self.add_copy_spec("/var/log/openvswitch/",
+ sizelimit=limit)
+
self.add_copy_spec([
- "/var/log/openvswitch/ovs-vswitchd.log",
- "/var/log/openvswitch/ovsdb-server.log",
"/var/run/openvswitch/ovsdb-server.pid",
"/var/run/openvswitch/ovs-vswitchd.pid"
])