Use int for masks

This commit is contained in:
Nico Schottelius 2019-03-04 15:32:27 +01:00
parent 77e92b12be
commit 615e0f89ef

View file

@ -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'])