[ipv6only] Modifications pour pettre des machines sans ipv4 et pare feu pour nat64

This commit is contained in:
Valentin Samir 2013-11-05 13:24:15 +01:00
parent d04d51a2c3
commit a2369dadf4
9 changed files with 67 additions and 21 deletions

View file

@ -18,20 +18,22 @@ role = %(role_dict)s
srvDict = { 'external' : [],
'connection-main' : [],
'failover-proxy-server' : [],
# 'failover-proxy-server' : [],
'vlan-ens' : [],
'users' : [],
'sniffer' : [],
'router-wifi' : []
'router-wifi' : [],
'routeur-nat64' : [],
}
tr = { 'external' : 'externe',
'connection-main' : 'main-router',
'vlan-ens' : 'appt-proxy',
'failover-proxy-server' : 'failover-proxy',
# 'failover-proxy-server' : 'failover-proxy',
'router-wifi' : 'wifi-router',
'users' : 'adherents-server',
'sniffer' : 'sniffer'
'sniffer' : 'sniffer',
'routeur-nat64' : 'routeur-nat64',
}
fin = open('/var/lib/bcfg2/Metadata/groups.xml')
@ -46,7 +48,6 @@ for key in srvDict.keys():
print "Erreur, il n'y a pas de serveur associé à l'attribut %s" % key
exit(1)
# On cherche les serveurs qui sont seulement sur le vlan adm
admOnly = parsedGroups.xpath('//Group[@name="adm-only"]/../@name')
@ -60,8 +61,9 @@ for key, values in srvDict.items():
else:
out[value] = [tr[key]]
fout = open('/usr/scripts/gestion/config_srv.py', 'w')
fout = open('/usr/scripts/gestion/config/config_srv.py', 'w')
fout.write(template % {'adm_list': admOnly.__str__(), 'role_dict' : out.__str__()})
fout.close()