zoneconf.cgi: Add STP options to GUI

Changes & new features:
- Add CSS for STP options, add texts to language files
- Read STP settings from ethernet configuration and display inputs
- Validate and save STP settings

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Leo-Andres Hofmann
2021-02-18 15:30:13 +01:00
committed by Michael Tremer
parent 5e6eba884b
commit 8de94a23e0
3 changed files with 108 additions and 0 deletions

View File

@@ -3028,9 +3028,13 @@
'zoneconf nicmode default' => 'Default',
'zoneconf nicmode macvtap' => 'MacVTap',
'zoneconf notice reboot' => 'Please reboot to apply your changes.',
'zoneconf stp enable' => 'STP enable',
'zoneconf stp priority' => 'Bridge Priority',
'zoneconf title' => 'Zone Configuration',
'zoneconf val native assignment error' => 'A NIC cannot be accessed natively by more than one zone.',
'zoneconf val ppp assignment error' => 'The NIC used for RED in PPP mode cannot be accessed by any other zone.',
'zoneconf val stp priority range error' => 'STP bridge priority must be in the range of 1-65535',
'zoneconf val stp zone mode error' => 'STP can only be enabled if the zone is in bridge mode',
'zoneconf val vlan amount assignment error' => 'A zone cannot have more than one VLAN assigned.',
'zoneconf val vlan tag assignment error' => 'You cannot use the same VLAN tag more than once per NIC.',
'zoneconf val zoneslave amount error' => 'A zone that is not in bridge mode can\'t have more than one NIC assigned',