From d140b32d033ec079424be170c8e34b208da5361a Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 9 Jul 2015 07:05:56 +0200 Subject: [PATCH] =?UTF-8?q?postservice/31-one-netmng:=20Correction=20de=20?= =?UTF-8?q?la=20cr=C3=A9ation=20des=20r=C3=A9seaux=20"Niveau=202"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il faut ajouter une "balise" AR dans le fichier d'initialisation pour créer effectivement les "baux" disponibles dans le réseaux. fixes #12319 Contribution VR de Nouvelle Calédonie --- postservice/31-one-netmng | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/postservice/31-one-netmng b/postservice/31-one-netmng index 75fe724..3f08985 100755 --- a/postservice/31-one-netmng +++ b/postservice/31-one-netmng @@ -257,17 +257,20 @@ class OneNetworkL2(OneNetwork): fd, tmp_path = mkstemp(prefix='oneVnet-') template = open(tmp_path, 'w') template.write('NAME = "{0}"\n'.format(self.zone)) - template.write('TYPE = ETHER\n') - template.write('SIZE = "{0}"\n'.format(self.net_size)) if self.tag: template.write('VLAN = yes\n') - template.write('VLAN_ID = {0}\n'.format(self.tag)) + template.write('VLAN_ID = "{0}"\n'.format(self.tag)) if self.trunk: - template.write('VLAN_TAGGED_ID = {0}\n'.format(self.trunk)) + template.write('VLAN_TAGGED_ID = "{0}""\n'.format(self.trunk)) template.write('BRIDGE = {0}\n'.format(self.swname)) + if self.net_size: + template.write("AR=[\n") + template.write(' TYPE = "ETHER",\n') + template.write(' SIZE = "{0}"\n'.format(self.net_size)) + template.write("]\n") template.close() return tmp_path