added 'novlandev' interface flag
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 31 Dec 2005 10:39:24 +0000 (10:39 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sat, 31 Dec 2005 10:39:24 +0000 (10:39 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2229 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/configuration.xml
util-vserver/scripts/vserver.functions

index f0563ba..f085654 100644 (file)
@@ -1073,6 +1073,13 @@ already. This can be used to assign primary interfaces which are
 created by the host or another vserver.
          </description>
        </boolean>
+       <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.
+         </description>
+       </boolean>
       </collection>
     </collection>
     
index be47739..77e15ba 100644 (file)
@@ -525,7 +525,7 @@ function _processSingleInterface
                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 || {
+           test -f /proc/net/vlan -o -e "$iface"/novlandev || {
                _addInterfaceCmd VCONFIG $vlan_info
            }
        fi