refs #162 use vlan identifiers starting from 3000

pull/8/head
Natalia Serrano 2024-02-01 10:43:24 +01:00
parent 4bc4eb091a
commit 7485678b05
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function getMaxVlan(){
IFS=$'\n'
MAX_VLAN=$(echo "${PORTGROUPS[*]}" | sort -nr | head -n1)
NEXT_VLAN=$(( MAX_VLAN + 1 ))
[[ $NEXT_VLAN -lt 3000 ]] && NEXT_VLAN=3000
echo VLAN assigned is $NEXT_VLAN
}