[./gestion/midtools.py] diverses ameliorations
darcs-hash:20100131223741-8fbb1-6ea7a3339dc5be903f1dddd33a69f96120843013.gz
This commit is contained in:
parent
f97be2ce42
commit
fcc404d60f
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ class Mid(object):
|
|||
self.mid -= int(iptools.param(config.NETs[self.type][0],
|
||||
True)['network'])
|
||||
self.reste = self.mid & 0x7ff
|
||||
return self.mid
|
||||
# if self.type == 'ens': # Inutile pour l'instant
|
||||
# self.reste &= 0xff
|
||||
|
||||
|
@ -100,4 +101,4 @@ class Mid(object):
|
|||
ip = config.prefix['subnet'][0].split(":/")[0]
|
||||
ip += hex(self.mid)[2:]
|
||||
ip += "::/64"
|
||||
|
||||
return ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue