[modules/traffic] Add parameter to hide down networks
This commit is contained in:
parent
0c03c1c48b
commit
682dcc775a
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ class Module(bumblebee.engine.Module):
|
||||||
state = "down"
|
state = "down"
|
||||||
if len(self.get_addresses(interface)) > 0:
|
if len(self.get_addresses(interface)) > 0:
|
||||||
state = "up"
|
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["exclude"]) > 0 and state in self._states["exclude"]: continue
|
||||||
if len(self._states["include"]) > 0 and state not in self._states["include"]: continue
|
if len(self._states["include"]) > 0 and state not in self._states["include"]: continue
|
||||||
|
|
Loading…
Reference in a new issue