mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
console: store UUID for VLAN device #6086
This commit is contained in:
parent
5d62b395d1
commit
dfadc8190e
@ -643,6 +643,7 @@ EOD;
|
||||
echo 'Enter the VLAN tag (1-4094): ';
|
||||
$vlan['tag'] = chop(fgets($fp));
|
||||
$vlan['vlanif'] = "{$vlan['if']}_vlan{$vlan['tag']}";
|
||||
$vlan['@attributes'] = ['uuid' => generate_uuid()];
|
||||
if (!is_numericint($vlan['tag']) || ($vlan['tag'] < 1) || ($vlan['tag'] > 4094)) {
|
||||
printf("\nInvalid VLAN tag '%s'\n", $vlan['tag']);
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user