Example #1
0
 def netmask(self):
     return cidr_to_netmask(self._obj.get_netmask())
Example #2
0
 def cidr(self, value):
     if not is_cidr(value):
         raise ValueError('%s is not a valid cidr' % value)
     self.netmask = cidr_to_netmask(value)