</collection>
</collection>
+
+ <collection name="interfaces" use="optional">
+ <boolean id="global-vlandev" name="vlandev">
+ <description>
+When this file exists, the steps which setup and destroy a VLAN
+interface will be executed.
+ </description>
+ </boolean>
+ </collection>
</collection>
<collection name=".distributions" use="optional">
<scalar name="scope">
<description>The default scope of the network interfaces.</description>
</scalar>
+ <boolean id="local-vlandev" name="vlandev">
+ <description>
+When this file exists, the steps which setup and destroy a VLAN
+interface will be executed for all interfaces of this vserver.
+ </description>
+ </boolean>
+ <boolean id="local-novlandev" name="novlandev">
+ <description>
+When this file exists, the steps which setup and destroy a VLAN
+interface will be skipped. This overrides the global
+<optionref ref="global-vlandev">vlandev</optionref> setting for
+this vserver.
+ </description>
+ </boolean>
<collection name="iface" type="symbolic">
<description>
<boolean name="novlandev">
<description>
When this file exists, the steps which setup and destroy a VLAN
-interface will be skipped. This flag should be set when a VLAN
-interface is used by multiple vservers or by the host.
+interface will be skipped. This will override the global
+<optionref ref="global-vlandev">vlandev</optionref> and the per-guest
+<optionref ref="local-vlandev">vlandev</optionref>.
+ </description>
+ </boolean>
+ <boolean name="vlandev">
+ <description>
+When this file exists, the steps which setup and destroy a VLAN
+interface will be executed.
</description>
</boolean>
</collection>
echo -e $"VLAN device-name used, but vlan subsystem not enabled.\nTry to execute 'modprobe 8021q' before starting the vservers" >&2
return 1
}
- test -f /proc/net/vlan -o -e "$iface"/novlandev || {
+ test -e "$iface/vlandev" \
+ -o \( -e "$iface/../vlandev" -a ! -e "$iface/novlandev" \) \
+ -o \( -e "$__CONFDIR/.defaults/interfaces/vlandev" \
+ -a ! -e "$iface/novlandev" \
+ -a ! -e "$iface/../novlandev" \) && {
_addInterfaceCmd VCONFIG $vlan_info
}
fi