diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index b07ab40d2..cc3f144c9 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -135,6 +135,20 @@ function interfaces_loopback_configure($verbose = false) } } +function interfaces_vlan_priorities() +{ + return array( + 1 => gettext('Background (1, lowest)'), + 0 => gettext('Best Effort (0, default)'), + 2 => gettext('Excellent Effort (2)'), + 3 => gettext('Critical Applications (3)'), + 4 => gettext('Video (4)'), + 5 => gettext('Voice (5)'), + 6 => gettext('Internetwork Control (6)'), + 7 => gettext('Network Control (7, highest)'), + ); +} + function interfaces_vlan_configure($realif = '', $verbose = false) { global $config; diff --git a/src/www/interfaces_vlan.php b/src/www/interfaces_vlan.php index 9a2ea0be5..4ca1dafe4 100644 --- a/src/www/interfaces_vlan.php +++ b/src/www/interfaces_vlan.php @@ -122,7 +122,8 @@ $main_buttons = array( - + +   @@ -134,6 +135,7 @@ $main_buttons = array( + "> diff --git a/src/www/interfaces_vlan_edit.php b/src/www/interfaces_vlan_edit.php index 8b195c4ad..7905b45a9 100644 --- a/src/www/interfaces_vlan_edit.php +++ b/src/www/interfaces_vlan_edit.php @@ -206,23 +206,11 @@ include("head.inc"); - gettext('Background (1, lowest)'), - 0 => gettext('Best Effort (0, default)'), - 2 => gettext('Excellent Effort (2)'), - 3 => gettext('Critical Applications (3)'), - 4 => gettext('Video (4)'), - 5 => gettext('Voice (5)'), - 6 => gettext('Internetwork Control (6)'), - 7 => gettext('Network Control (7, highest)'), -); -?>