[./gestion/midtools.py] diverses ameliorations

darcs-hash:20100131223741-8fbb1-6ea7a3339dc5be903f1dddd33a69f96120843013.gz
This commit is contained in:
Olivier Huber 2010-01-31 23:37:41 +01:00
parent f97be2ce42
commit fcc404d60f

View file

@ -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