mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
console: improve input of LAGG
This commit is contained in:
parent
d958c1d9c2
commit
ffe1b675d1
@ -153,7 +153,6 @@ EOD;
|
||||
|
||||
if (in_array($key, array('y', 'Y'))) {
|
||||
vlan_setup(array_merge($iflist, $iflist_lagg), $fp);
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
if (isset($config['vlans']['vlan'][0])) {
|
||||
@ -165,6 +164,7 @@ EOD;
|
||||
}
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
Valid interfaces are:
|
||||
|
||||
|
||||
@ -537,7 +537,7 @@ EOD;
|
||||
return;
|
||||
}
|
||||
|
||||
echo "\nEnter the member interface names for the new LAGG seperated by commas (or nothing if finished): ";
|
||||
echo "\nEnter the LAGG members to aggregate (or nothing if finished): ";
|
||||
$members_str = chop(fgets($fp));
|
||||
|
||||
if ($members_str) {
|
||||
@ -558,11 +558,10 @@ EOD;
|
||||
break;
|
||||
}
|
||||
|
||||
echo 'Enter the LAGG protocol (none,lacp,failover,fec,loadbalance,roundrobin): ';
|
||||
echo 'Enter the LAGG protocol (default:none,lacp,failover,fec,loadbalance,roundrobin): ';
|
||||
$lagg['proto'] = strtolower(chop(fgets($fp)));
|
||||
if (!in_array($lagg['proto'], ['none', 'lacp', 'failover', 'fec', 'loadbalance', 'roundrobin'])) {
|
||||
printf("\nInvalid LAGG protocol '%s'\n", $lagg['proto']);
|
||||
continue;
|
||||
$lagg['proto'] = 'none';
|
||||
}
|
||||
|
||||
if ($lagg['proto'] == "lacp") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user