diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2015-05-31 16:17:40 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-07 14:58:52 +0100 |
commit | 002cef3eddc288352d0b92f6272fbd2e85280e6e (patch) | |
tree | d88aabc04ce952e5bb31a1e04bfe7b6f612fd84b | |
parent | 83ef3aff955a33bb58c578479ac6b63a615b4521 (diff) | |
download | sos-002cef3eddc288352d0b92f6272fbd2e85280e6e.tar.gz |
[ptp] Add new plugin for Precision time protocol
Partially resolves #570
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/ptp.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sos/plugins/ptp.py b/sos/plugins/ptp.py new file mode 100644 index 00000000..a6ac6487 --- /dev/null +++ b/sos/plugins/ptp.py @@ -0,0 +1,36 @@ +# Copyright (C) 2015 Pavel Moravec <pmoravec@redhat.com> + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin + + +class Ptp(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): + """Precision time protocol + """ + + plugin_name = "ptp" + profiles = ('system', 'services') + + packages = ('linuxptp',) + + def setup(self): + self.add_copy_spec([ + "/etc/ptp4l.conf", + "/etc/timemaster.conf", + "/sys/class/ptp" + ]) + +# vim: et ts=4 sw=4 |