Use int for masks
This commit is contained in:
parent
77e92b12be
commit
615e0f89ef
1 changed files with 2 additions and 2 deletions
|
@ -38,11 +38,11 @@ class L2Controller(object):
|
|||
self.info={}
|
||||
self.info['ndp_multicast'] = ipaddress.ip_network("ff02::1:ff00:0/104")
|
||||
|
||||
self.info['v6_mask'] = "64"
|
||||
self.info['v6_mask'] = 64
|
||||
self.info['v6_base'] = ipaddress.ip_network("2001:db8::/32")
|
||||
self.info['v6_gen'] = self.info['v6_base'].subnets(new_prefix=self.info['v6_mask'])
|
||||
|
||||
self.info['v4_mask'] = "24"
|
||||
self.info['v4_mask'] = 24
|
||||
self.info['v4_base'] = ipaddress.ip_network("10.0.0.0/8")
|
||||
self.info['v4_gen'] = self.info['v4_base'].subnets(new_prefix=self.info['v4_mask'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue