Derive initial interface selection based on policy

So far, any output module with a selection capability defaulted to
the first interface in the list as first pick. This uses the policy
configuration instead and thus allows to select which interface to
display first:

Examples:
 bmon -p 'em1,*'
 bmon -p 'eth*,lo,*'

The first rule that finds a matching interface is used and will
trigger initial selection.

Note that this is *ONLY* evaluated after the first read of the
statistics so if a more preferred interface appears later, the
selection will not be changed.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf
2016-08-02 10:10:34 +02:00
parent df271c43a4
commit ddcd5e7d24
2 changed files with 28 additions and 1 deletions

3
NEWS
View File

@ -1,3 +1,6 @@
HEAD
* Pick default selected interface based on policy
v3.9 - Jul 19, 2016
* Color support
* Add ability to reset statistics from curses UI