try all possible vLANs in setup-netdev

This commit is contained in:
Sandino Araico Sanchez 2021-11-02 22:24:25 -06:00
parent 6378a63a8a
commit b042eaf006

View file

@ -5,12 +5,12 @@ modprobe bonding
# All vlans are using netmask /22
MASK=22
CTLPLANE=110 # ctlplane vlan
VLANS='110 218 222 226 306 321 480 1000'
CTLPLANE=110 # ctlplane vlan #Fixme: hardcoded
#VLANS='110 218 222 226 306 321 480 1000'
SPEED=25000
MTU=9000
for VLAN in $VLANS ; do
for VLAN in {10..4000} ; do # Most vLANs
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
VLAN_CONF=`grep $SERVER_SERIAL \
/etc/netdev/vlan.$VLAN.csv`