summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-02 18:32:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-02 18:32:17 +0000
commit55be70e6fb45ac5c13e131d1d866a4a176fd64c0 (patch)
tree0e205c9f59f6c10cbf1636129b8e2a5af6b871ac /etc/inc
parent4831ce1377c5c3bb1efddc3bb5e916b464d3e282 (diff)
downloadpfsense-55be70e6fb45ac5c13e131d1d866a4a176fd64c0.zip
pfsense-55be70e6fb45ac5c13e131d1d866a4a176fd64c0.tar.gz
* Add convert_friendly_interface_to_real_interface_name
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 384ee04..e8802a8 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -483,6 +483,13 @@ function execute_command_return_output($command) {
}
/*
+ * convert_friendly_interface_to_real_interface_name($interface): convert WAN to FXP0
+ */
+function convert_friendly_interface_to_real_interface_name($interface) {
+ return $config['interfaces'][$interface]['if'];
+}
+
+/*
* convert_real_interface_to_friendly_interface_name($interface): convert fxp0 -> wan, etc.
*/
function convert_real_interface_to_friendly_interface_name($interface) {
OpenPOWER on IntegriCloud