From 682dcc775a02222aa9c08784490dfee908891159 Mon Sep 17 00:00:00 2001 From: Pavle Portic Date: Sun, 1 Apr 2018 19:39:14 +0200 Subject: [PATCH] [modules/traffic] Add parameter to hide down networks --- bumblebee/modules/traffic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/traffic.py b/bumblebee/modules/traffic.py index a87ece5..218d64d 100644 --- a/bumblebee/modules/traffic.py +++ b/bumblebee/modules/traffic.py @@ -76,6 +76,8 @@ class Module(bumblebee.engine.Module): state = "down" if len(self.get_addresses(interface)) > 0: state = "up" + elif bumblebee.util.asbool(self.parameter("hide_down", True)): + continue if len(self._states["exclude"]) > 0 and state in self._states["exclude"]: continue if len(self._states["include"]) > 0 and state not in self._states["include"]: continue