Mise à jour de la création des réseaux L2 et L3.

Le type de réseau n'est plus attaché a l'hôte mais au réseau lui même.

ref #16784 @1h
This commit is contained in:
Philippe Caseiro 2016-07-21 11:14:44 +02:00
parent b4ab4e1ec2
commit 051136ac81
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class OneNetworkL3(OneNetwork):
fd, tmp_path = mkstemp(prefix='oneVnet-')
template = open(tmp_path, 'w')
template.write('NAME = "{0}"\n'.format(self.zone))
template.write('VN_MAD = ovswitch\n')
if (update is False):
if self.vnet_rg_start and self.vnet_rg_size:
template.write('AR=[\n')
@ -262,6 +263,7 @@ class OneNetworkL2(OneNetwork):
fd, tmp_path = mkstemp(prefix='oneVnet-')
template = open(tmp_path, 'w')
template.write('NAME = "{0}"\n'.format(self.zone))
template.write('VN_MAD = ovswitch\n')
if self.tag:
template.write('VLAN = yes\n')