code: def generate_address(hypervisor, configuration):
      
      ipv4 = configuration['ipv4']
      prefix = configuration['prefix']
      subnet_prefix = configuration['subnet_prefix']
      subnet_address = ipaddress.IPv4Network(u'/'.join((str(ipv4), str(prefix))))
      net_address_pool = subnet_address.subnets(new_prefix=subnet_prefix)
  
      return address_lookup(hypervisor, net_address_pool)
docs: Generate a valid IP address according to the configuration.