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