]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/ids-functions.pl
ids-functions.pl: Add function to get the available network zones
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 4 Aug 2018 14:48:27 +0000 (16:48 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 5 Aug 2018 08:33:46 +0000 (10:33 +0200)
commit1cae702c22ed31784393980968634626af8fe653
tree0fb4484145e7d50445729b0a4861515b74ceb0c6
parentab114c276b0d719b9a9c43dea05870e4ceedbdbc
ids-functions.pl: Add function to get the available network zones

The get_available_network_zones() function uses the /var/ipfire/ethernet/settings
file and translates the configured mode into an array, which contains the names
of the configured network zones.

The array will be returned and easily can be used to loop over this list of
available network zones and perform any kind of actions in other scripts.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl