From: Luis Vinay Subject: 802.1Q VLAN support Date: Wed, 05 Dec 2007 10:48:56 -0300 Message-ID: <1196862536.13581.27.camel@wasserkocher.iplan.com.ar> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I'm working on adding the 802.1Q vlan suport to Xen. Half of the work is done. The idea is that we can specify something like this on the domU configuration file: vlan = [ 'pdev=eth1, vlanid=123, bridge=xenbr1123', 'pdev=eth1, vlanid=100 ' ] perhaps even specify an IP address (I founded this usefull in some implementations), and then, as allways: vif = [ 'bridge=xenbr1123, mac=00:16:3e:00:00:00', 'bridge=xenbr1101, mac=00:16:3e:00:00:01' ] and perhaps also specify a list in xend-config.spx. I'll check if the bridge is already created before connecting the VIF, at domU creation, if not bring it up, and when destroying the domU, also check if other domU is using the same bridge before shuting it down. All this raises me some questions: - Suggestions/advices regarding on where/how put my code? - Could it bring problems if I add this code in 'xen/xm/create.py'? gopts.var('vlan', val="iface=IFACE,vlanid=VLANID,vlanbridge=VLANBRIDGE", fn=append_value, default=[], [...] - Other suggestions/advices? best regards -- /* --- Luis Vinay XTech - Soluciones linux para Empresas lvinay@xtech.com.ar --- */