diff options
author | Michele Baldessari <michele@acksyn.org> | 2014-03-31 20:59:08 +0100 |
---|---|---|
committer | Adam Stokes <adam.stokes@ubuntu.com> | 2014-03-31 20:35:22 -0400 |
commit | b5055d8fd7c6280b779088d98f18a60a6d483db4 (patch) | |
tree | 61cfb7334b542e9dd9785863411fba898afef0c3 | |
parent | efc3b09c2b41c166e54593f0956b9f0eaf374925 (diff) | |
download | sos-b5055d8fd7c6280b779088d98f18a60a6d483db4.tar.gz |
Collect network interfaces flags
The output of ifconfig or ip link is not enough to understand the full
state of the network card flags. In particular IFF_PROMISC is set on a
a bridge port-member but that is not displayed via ifconfig nor ip link.
See also https://bugzilla.redhat.com/show_bug.cgi?id=199979c#17 why we
need to do this.
Closes #245
Signed-off-by: Michele Baldessari <michele@acksyn.org>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | sos/plugins/networking.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -25,6 +25,7 @@ Kent Lamb <klamb@redhat.com> Louis Bouchard <louis.bouchard@canonical.com> Lukas Zapletal <lzap@redhat.com> Marc Sauton <msauton@redhat.com> +Michele Baldessari <michele@acksyn.org> Navid Sheikhol-Eslami <navid@redhat.com> Pierre Amadio <pamadio@redhat.com> Pierre Carrier <pcarrier@redhat.com> diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py index ce5b3aa3..27a55b7c 100644 --- a/sos/plugins/networking.py +++ b/sos/plugins/networking.py @@ -79,7 +79,8 @@ class Networking(Plugin): "/etc/network*", "/etc/NetworkManager/NetworkManager.conf", "/etc/NetworkManager/system-connections", - "/etc/dnsmasq*"]) + "/etc/dnsmasq*", + "/sys/class/net/*/flags"]) self.add_forbidden_path("/proc/net/rpc/use-gss-proxy") self.add_forbidden_path("/proc/net/rpc/*/channel") self.add_forbidden_path("/proc/net/rpc/*/flush") |