Projet

Général

Profil

Evolution #7265

Mis à jour par Fabrice Barconnière il y a environ 10 ans

Gérer la correspondance de noms de variables 2.3 et 2.4.
Si un modèle de réseau lié à un modèle de node fait référence à un nom de variable 2.3 qui a été modifié en 2.4 (les vlan par exemple), il est impossible d'importer un serveur rvp 2.4 depuis Zéphir.
Pour cela, il faudrait disposer d'une correspondance des noms de variable 2.3-->2.4 afin d'interroger Zéphir avec le nouveaux nom de variable dans le cas d'un serveur 2.4 (récupérer la liste déjà établie par Gwen ou Bruno) dans creole/upgrade.py :
<pre>
for i in range(0, 5):
dico.move('adresse_ip_vlan_eth{0}'.format(i), 'vlan_ip_eth{0}'.format(i))
dico.move('adresse_netmask_vlan_eth{0}'.format(i), 'vlan_netmask_eth{0}'.format(i))
dico.move('adresse_network_vlan_eth{0}'.format(i), 'vlan_network_eth{0}'.format(i))
dico.move('adresse_broadcast_vlan_eth{0}'.format(i), 'vlan_broadcast_eth{0}'.format(i))
dico.move('adresse_gw_vlan_eth{0}'.format(i), 'vlan_gw_eth{0}'.format(i))
dico.move('id_vlan_eth{0}'.format(i), 'vlan_id_eth{0}'.format(i))
dico.move('proxy_eth0_adresse', 'proxy_eth0_ip')
dico.move('proxy_eth0_network', 'proxy_eth0_network')
dico.move('nom_interface1', 'nom_zone_eth1')
dico.move('passerelle_smtp', 'exim_relay_smtp')
dico.move('mail_rewrite_domain', 'exim_qualify_domain')
</pre>

Retour