Réseaux L2: Ajout de l’adresse MAC de gen_config
* postservice/31-one-netmng (OneNetworkL2.create_template): Si la première adresse MAC est définie, on l’utilise dans le template de création du réseau. Ref: #16275
This commit is contained in:
parent
83eda7d01b
commit
0ac6a56e62
|
@ -272,6 +272,10 @@ class OneNetworkL2(OneNetwork):
|
||||||
if self.net_size:
|
if self.net_size:
|
||||||
template.write("AR=[\n")
|
template.write("AR=[\n")
|
||||||
template.write(' TYPE = "ETHER",\n')
|
template.write(' TYPE = "ETHER",\n')
|
||||||
|
|
||||||
|
if self.first_mac:
|
||||||
|
template.write(' MAC = "{0}",\n'.format(self.first_mac))
|
||||||
|
|
||||||
template.write(' SIZE = "{0}"\n'.format(self.net_size))
|
template.write(' SIZE = "{0}"\n'.format(self.net_size))
|
||||||
template.write("]\n")
|
template.write("]\n")
|
||||||
template.close()
|
template.close()
|
||||||
|
|
Loading…
Reference in New Issue