import ipaddress
import random

min_net = '0B.00.00.00'
max_net = 'DF.00.00.00'
print(max_net.split('.'))


print(int(max_net))

class IPv4RandomNetwork(ipaddress.IPv4Network):
    def __init__(self):
        self.network_address = random.ranint
        self.netmask = p
        addr = ipaddress.IPv4Address(())

        def regular(self):
            return ipaddress.IPv4Address.is_global)
        # key_value - ip + mask - for further sorting
        def key_value(self):
            return


