From 29131e2f65644a37413883ac8d63fca4af722ca5 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 3 Nov 2016 19:45:12 +0100 Subject: [PATCH] [modules/nic] Exclude docker and vbox interfaces Until I have a clue on how to correctly handle them, exclude docker and vbox network interfaces. --- bumblebee/modules/nic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/nic.py b/bumblebee/modules/nic.py index e04fd6d..9040752 100644 --- a/bumblebee/modules/nic.py +++ b/bumblebee/modules/nic.py @@ -14,7 +14,7 @@ def description(): class Module(bumblebee.module.Module): def __init__(self, output, args): super(Module, self).__init__(args) - self._exclude = ( "lo", "virbr" ) + self._exclude = ( "lo", "virbr", "docker", "vboxnet" ) self._interfaces = [ i for i in netifaces.interfaces() if not i.startswith(self._exclude) ] self._index = 0 self._intf = self._interfaces[0] if len(self._interfaces) > 0 else None