I noticed a couple of issues in rc.inet1 while testing vlans.
(issue 1, ip link set shouldn't mention 'type vlan')
rc.inet1.conf allows IFOPTS to set a vlan name
rc.inet1 loops over these options and sets each of them using "/sbin/ip link set dev ${1} type vlan $IFOPT"
this triggers an error "vlan: unknown command "name""
this is reproduced on the commandline by issuing something like "ip link set dev eth0.6 type vlan name xs4all"
the problem is the 'type vlan' part, when omitted, it works as expected
although this is a trivial patch, it looks like there's a bit more needed even -> I then noticed a few other problems
(issue 2, vlan naming clashes with logic checking for ipv4/ipv6 config)
when a vlan is named using IFOPTS, then this name gets used in /proc too
this then becomes problematic when rc.inet1 uses the original nic name to check, like looking at something like
/proc/sys/net/ipv6/conf/eth1.11/autoconf
instead of the 'renamed' location like
/proc/sys/net/ipv6/conf/<vlan name>/autoconf
(issue 3, nic/vlan cleanup logic seems 'off')
upon a restart the script first tries to 'clean up' everything in order to start fresh
I agree with the basis approach of 'first clean everything up so we can start over', but noticed that what gets cleaned up, depends on the current rc.inet1.conf file instead of on the current system state (i.e. available nics/vlans/etc)
this means that processing/checking larger rc.inet1.conf changes by using rc.inet1 (*_)restart can become quite confusing, since for example changes will be not be processed due to old nics still being 'in use'
I'll need to fix this myself at some point, since I like the convenience of using vlan custom naming, but it's not on the top of my priority list atm, so at least I wanted to mention it here, given the sw15/swcur progress