[modules/traffic] Add parameter to hide down networks

This commit is contained in:
Pavle Portic 2018-04-01 19:39:14 +02:00
parent 0c03c1c48b
commit 682dcc775a
No known key found for this signature in database
GPG key ID: 6758ACE46AA2A849

View file

@ -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