Make sure we tell the code that the interface exists otherwise multiple laggs might get created.

This commit is contained in:
Ermal 2011-03-03 16:29:39 +00:00
parent ee487a6844
commit 4f4e85dfb8

View File

@ -93,6 +93,8 @@ if ($_POST) {
$lagg['descr'] = $_POST['descr'];
$lagg['laggif'] = $_POST['laggif'];
$lagg['proto'] = $_POST['proto'];
if (isset($id) && $a_laggs[$id])
$lagg['laggif'] = $a_laggs[$id]['laggif'];
$lagg['laggif'] = interface_lagg_configure($lagg);
if ($lagg['laggif'] == "" || !stristr($lagg['laggif'], "lagg"))