Commit ec91b2b7 authored by Adam Wujek's avatar Adam Wujek 💬

[Feature: 1101] Warn that webinterface does not save VLANs to dot-config

Webinterface does not support saving changes of VLAN configuration to
a dot-config. Warn user about it.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent e5136083
......@@ -25,6 +25,7 @@
// Get VLANS
echo '<center><strong>Port-VLAN List</strong></center><hr>';
echo '<center><strong><font color="red">!! Please note that all changes to the VLANs configuration will be lost after a reboot !! <br> Use dot-config instead.</font></strong></center><hr>';
$tmp_vlan_file="/tmp/vlans.conf";
$vlans = shell_exec("/wr/bin/wrs_vlans --list >".$tmp_vlan_file);
$vlans = shell_exec("cat ".$tmp_vlan_file." | sed -n '/ /s/ \+/ /gp'");
......
......@@ -24,6 +24,7 @@
<?php
echo '<center><strong>Existing VLANs</strong></center><hr>';
echo '<center><strong><font color="red">!! Please note that all changes to the VLANs configuration will be lost after a reboot !! <br> Use dot-config instead.</font></strong></center><hr>';
$tmp_vlan_file="/tmp/vlans.conf";
$vlans = shell_exec("/wr/bin/wrs_vlans --list >".$tmp_vlan_file);
$vlans = shell_exec("cat ".$tmp_vlan_file." | sed -n '/ /s/ \+/ /gp'");
......@@ -84,6 +85,7 @@
//Display Port2Vlan assignment
echo '<br><br>';
echo '<center><strong>Port2Vlan assignments</strong></center><hr>';
echo '<center><strong><font color="red">!! Please note that all changes to the VLANs configuration will be lost after a reboot !! <br> Use dot-config instead.</font></strong></center><hr>';
echo '<table class="altrowstable firstcol" id="alternatecolor1" width="100%">';
echo '<tr><th>Port</strong></th><th>QMode</th><th>Priority</th><th>VLAN ID</th><th>MAC Address</th></tr>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment