[./Python/etc/network/interfaces] On veut pouvoir cajouter via bcfg2 les adresse ipv6 automatiquement
darcs-hash:20100119005205-8fbb1-9257a6544120c3e422a875ed32082e72b5920210.gz
This commit is contained in:
parent
0544bb6937
commit
16769d1cb1
1 changed files with 10 additions and 5 deletions
|
@ -32,11 +32,7 @@ iface %(interface)s inet static
|
|||
print " ", line
|
||||
print
|
||||
|
||||
print """iface %(interface)s inet6 static
|
||||
address %(ip6)s
|
||||
netmask 64
|
||||
gateway fe80::219:bbff:fe31:3b80
|
||||
""" % { 'interface': interface, 'ip6': pubip6(interface) }
|
||||
pub6(interface)
|
||||
|
||||
elif mode == "adm":
|
||||
print """auto %(interface)s
|
||||
|
@ -117,6 +113,15 @@ def pubip6(If):
|
|||
def admip6(If):
|
||||
return "2a01:240:fe3d:c804:" + If_Mac[If]
|
||||
|
||||
def pub6(interface):
|
||||
print """iface %(interface)s inet6 static
|
||||
address %(ip6)s
|
||||
netmask 64
|
||||
gateway fe80::219:bbff:fe31:3b80
|
||||
""" % { 'interface': interface, 'ip6': pubip6(interface) }
|
||||
|
||||
|
||||
|
||||
Probe_Mac = metadata.Probes["mac"].split('\n')
|
||||
If_Mac = dict(zip(Probe_Mac[:-1:2], Probe_Mac[1::2]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue