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:
parent
b4ab4e1ec2
commit
051136ac81
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user