Lines Matching refs:hostmask
501 """Turn a netmask/hostmask string into a prefix length
504 ip_str: The netmask/hostmask to be converted
510 NetmaskValueError: If the input is not a valid netmask/hostmask
512 # Parse the netmask/hostmask like an IP address.
526 # Invert the bits, and try matching a /0+1+/ hostmask instead.
761 int(self.hostmask))
764 def hostmask(self):
777 return '%s/%s' % (self.network_address, self.hostmask)
977 step = (int(self.hostmask) + 1) >> prefixlen_diff
1176 # Check for a netmask or hostmask in dotted-quad form.
1404 def hostmask(self):
1405 return self.network.hostmask
1457 self.hostmask)
1466 .hostmask: IPv4Address('0.0.0.31')
1492 non-zero field (e.g. /255.0.0.0 == /8) and as a hostmask if it
2109 def hostmask(self):
2110 return self.network.hostmask
2162 self.hostmask)
2179 .hostmask: IPv6Address('::f')